-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 998 Bytes
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
services:
database:
image: postgres
healthcheck:
test: pg_isready
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD:?please set database password}"
POSTGRES_DB: 'kazantracks'
POSTGRES_USER: 'django'
volumes:
- db-data:/var/lib/postgresql/data
web:
build:
context: .
args:
- PORT=8000
environment:
DJANGO_DEBUG: "${DJANGO_DEBUG:-False}"
DB_HOST: database
DB_PASSWORD:
LOG_LEVEL: debug
volumes:
- uploads:/usr/src/images/uploads/
depends_on:
- database
nginx:
build:
context: .
dockerfile: nginx.Dockerfile
environment:
VIRTUAL_HOST:
LETSENCRYPT_HOST:
volumes:
- uploads:/images/uploads
depends_on:
- web
networks:
- nginx-proxy
- default
volumes:
uploads:
name: "${DEPLOY_ENV:-dev}-uploads"
db-data:
name: "${DEPLOY_ENV:-dev}-routsweb-db"
networks:
default:
nginx-proxy:
external: true