-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
58 lines (57 loc) · 1.14 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
version: '2'
services:
dataservices:
build: ./data_services/.
volumes:
- ./data_services:/usr/src/app/
depends_on:
- postgresql
volumes_from:
- postgresql
links:
- postgresql
ports:
- "8000:8000"
env_file: ./data_services/.env
command: python main.py
postgresql:
build: ./postgresql/.
volumes:
- ./postgresql:/var/lib/postgresql
ports:
- "5432:5432"
expose:
- "5432"
web:
restart: always
build: .
depends_on:
- dataservices
volumes:
- ./services:/usr/src/app/services
- ./stylesheets:/usr/src/app/stylesheets
- ./server:/usr/src/app/server/
- ./scripts:/usr/src/app/scripts
- ./view:/usr/src/app/view
- ./icons:/usr/src/app/icons
- ./logos:/usr/src/app/logos
- ./data:/usr/src/app/data
links:
- postgresql:postgresql
ports:
- "8080:8080"
env_file: .env
nginxproxy:
restart: always
build: ./nginxproxy/
ports:
- "80:80"
volumes:
- /www/static
- /www/media
volumes_from:
- web
links:
- web
depends_on:
- web