-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
103 lines (97 loc) · 2.41 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '2'
services:
database:
image: postgis/postgis:13-3.1
environment:
- POSTGRES_USER=pfb
- POSTGRES_PASSWORD=pfb
- POSTGRES_DB=pfb
nginx:
image: pfb-nginx
build:
context: ./src/nginx
dockerfile: Dockerfile
depends_on:
- django
ports:
- "9200:443"
links:
- django
django:
image: pfb-app
extends:
service: django-common
file: common.yml
ports:
- "9202:9202"
- "9203:9203"
links:
- database:database.service.pfb.internal
volumes:
- ./data:/data
- ./src/django:/usr/src
- ./src/nginx/srv/static:/static/
environment:
- DEV_USER
django-q:
image: django-q
extends:
service: django-common
file: common.yml
entrypoint: ./manage.py
command: qcluster
links:
- database:database.service.pfb.internal
volumes:
- ./src/django:/usr/src
environment:
- DEV_USER
angularjs:
image: pfb-angularjs
working_dir: /opt/pfb/angularjs
build:
context: ./src/angularjs
dockerfile: Dockerfile
links:
- nginx:pfb.internal
ports:
- "9301:9301"
- "9302:9302"
volumes:
- ./src/angularjs/.eslintrc:/opt/pfb/angularjs/.eslintrc
- ./src/angularjs/gulp:/opt/pfb/angularjs/gulp
- ./src/angularjs/gulpfile.js:/opt/pfb/angularjs/gulpfile.js
- ./src/angularjs/src:/opt/pfb/angularjs/src
- ./src/angularjs/docs:/opt/pfb/angularjs/docs
command: gulp serve
analysis:
image: pfb-analysis
extends:
service: django-common
file: common.yml
build:
context: ./src
dockerfile: analysis/Dockerfile
links:
- database:database.service.pfb.internal
volumes:
- ./data:/data
- ./src/django:/opt/pfb/django
tilegarden:
image: pfb-tilegarden
build:
context: ./src/tilegarden
dockerfile: Dockerfile
env_file: ./src/tilegarden/.env.dev
links:
- database:database.service.pfb.internal
ports:
- "9400:3000"
- "9401:9229"
volumes:
- $HOME/.aws:/root/.aws:ro
# Can't just link src/tilegarden because that makes node_modules disappear
- ./src/tilegarden/src:/opt/pfb/tilegarden/src
- ./src/tilegarden/scripts:/opt/pfb/tilegarden/scripts
- ./src/tilegarden/tests:/opt/pfb/tilegarden/tests
- ./src/tilegarden/package.json:/opt/pfb/tilegarden/package.json