Skip to content

Commit ca8919e

Browse files
committed
naming
1 parent 07df9dd commit ca8919e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ services:
2626
# use letsencrypt for ssl
2727
- LETSENCRYPT=true
2828
# email for ssl
29-
- LE_EMAIL=dogmaprotocol@gmail.com
29+
- LE_EMAIL=you-domain@gmail.com
3030
# letsencrypt domains
31-
- LE_FQDN=dgma.dev,dev.dgma.dev
31+
- LE_FQDN=you-domain.com,sub.you-domain.com
3232
networks:
3333
pub-shared-net:
3434

etc/service.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
server_name dgma.dev;
2+
server_name domain.dev;
33

44
# list all publically available ports for domain
55
listen 80;

examples/containers.routing.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
map $server_port $stg_pass_route {
88
# port => container name:port
9-
"443" "web:8080";
9+
"443" "conainter_name:8080";
1010

1111
default "localhost:$server_port";
1212
}
@@ -39,9 +39,9 @@ server {
3939
}
4040
}
4141

42-
map $server_port $dev_pass_route {
42+
map $server_port $sub_pass_route {
4343
# port => name label:port
44-
"443" "web:8081";
44+
"443" "container_2_name:8080";
4545

4646
default "localhost:$server_port";
4747
}
@@ -70,6 +70,6 @@ server {
7070
proxy_set_header X-Forwarded-Proto $scheme;
7171

7272
# use the mapped hostname and port for a proxy target
73-
proxy_pass "http://$dev_pass_route";
73+
proxy_pass "http://$sub_pass_route";
7474
}
7575
}

0 commit comments

Comments
 (0)