-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.29 KB
/
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
53
54
55
56
57
58
59
60
61
62
version: '3.2'
services:
postgres:
image: postgres:11.5
restart: always
volumes:
- ./pgdata:/var/lib/postgresql/data/
env_file: .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
DB_SERVICE: ${DB_SERVICE}
DB_PORT: ${DB_PORT}
SECRET_KEY: ${SECRET_KEY}
adminer:
image: adminer
restart: always
expose:
# Change the value in the nginx configuration if this is changed
- "8080"
depends_on:
- postgres
web:
restart: always
build: ./web
volumes:
- webdata:/usr/src/app
expose:
# Change the value in the nginx configuration if this is changed
- "8000"
depends_on:
- postgres
env_file: .env
environment:
DB_SERVICE: ${DB_SERVICE}
DB_PORT: ${DB_PORT}
SECRET_KEY: ${SECRET_KEY}
# Define this in .env for development mode. DO NOT USE IN PRODUCTION
DEBUG: ${DEBUG}
nginx-reports:
restart: always
build: ./nginx/
env_file: .env
ports:
- "${HOST_PORT}:80"
volumes:
- webdata:/usr/src/app
networks:
- default
- nginx_net
volumes:
# This allows Nginx to serve static content, as Django won't...
webdata:
networks:
nginx_net:
external: true