Skip to content

Commit cf02a57

Browse files
author
Marcin Bator
committed
env compose
1 parent 92e6ac2 commit cf02a57

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ services:
1212
nginx:
1313
image: nginx:latest
1414
ports:
15-
- "60080:80"
16-
- "60443:443"
15+
- "${PORT_80}:80"
16+
- "${PORT_443}:443"
1717
restart: always
1818
volumes:
19-
- ./nginx.conf:/etc/nginx/nginx.conf:ro
19+
- "${NGINX_CONF_PATH}:/etc/nginx/nginx.conf:ro"
2020
- ./static:/static:ro
2121
- ./media:/media:ro
2222
- /etc/letsencrypt:/etc/letsencrypt:ro

example.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ POSTGRES_DB=postgres
2525
POSTGRES_USER=postgres
2626
POSTGRES_PASSWORD=postgres
2727

28+
PORT_80=80
29+
PORT_443=443
30+
NGINX_CONF_PATH=./nginx.conf

0 commit comments

Comments
 (0)