-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 984 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
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.4'
services:
db:
restart: always
image: postgres:latest
volumes:
- pgdata:/var/lib/postgresql/data/
networks:
- pg_network
nginx:
restart: always
image: nginx:alpine
ports:
- "443:443"
- "80:80"
volumes:
- type: bind
source: ./web/media
target: /media
- type: bind
source: ./web/static
target: /static
- type: bind
source: ./nginx/conf.d
target: /etc/nginx/conf.d
networks:
- nginx_network
depends_on:
- web
- db
web:
restart: always
build: .
image: raumdeuter/slides:latest
command: /usr/bin/supervisord -c /etc/supervisor/conf.d/uwsgi.conf
volumes:
- type: bind
source: ./web
target: /app
networks:
- nginx_network
- pg_network
depends_on:
- db
volumes:
pgdata:
networks:
nginx_network:
driver: bridge
pg_network:
driver: bridge