-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.12 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
version: "2.0"
services:
pg:
image: postgres:12
env_file:
- .env
volumes:
- ./data/pgdata/db:/var/lib/postgresql/data
- ./data/pgdata/etc:/etc/postgresql
- ./data/pgdata/logs:/var/log/postgresql
restart:
always
app:
build: .
volumes:
- ./app:/opt/app
- ./dependencies:/opt/dependencies
- ./media:/opt/static/media
- ./static:/opt/static/static
- ./CHANGELOG.md:/opt/CHANGELOG.md
links:
- pg:pg
ports:
- 8002:8000
env_file:
- .env
uwsgi:
build: .
depends_on:
- "pg"
volumes:
- ./app:/opt/app
- ./dependencies:/opt/dependencies
- ./media:/opt/static/media
- ./static:/opt/static/static
- ./logs:/srv/logs
- ./CHANGELOG.md:/opt/CHANGELOG.md
env_file:
- .env
command:
bash /docker_entrypoint.sh
restart:
always
nginx:
image: nginx:latest
ports:
- "80:80"
depends_on:
- uwsgi
volumes_from:
- uwsgi
volumes:
- ./logs:/nginx/logs
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
restart:
always