-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 888 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (39 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.7'
services:
backend:
build: app
ports:
- "${BACKEND_HOST_PORT}8000"
volumes:
- .:/deploy
working_dir: /deploy/app
stdin_open: true
tty: true
command: ${RUNSERVER:-/deploy/run.sh}
networks:
- backnet
proxy:
build: proxy
restart: always
depends_on:
- backend
environment:
# these variables will be used by the global nginx proxy
VIRTUAL_HOST: "${VIRTUAL_HOST}"
VIRTUAL_HOST_ALIAS: "${VIRTUAL_HOST_ALIAS}"
LETSENCRYPT_HOST: "${LETSENCRYPT_HOST}"
LETSENCRYPT_EMAIL: "${LETSENCRYPT_EMAIL}"
volumes:
- ./collectstatic:/collectstatic
ports:
- "${PROXY_HOST_PORT}80"
extra_hosts:
private-files.internal: 127.0.0.1
networks:
- backnet
- nginx-gateway
networks:
backnet:
nginx-gateway:
external:
name: nginx-gateway