-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.dev.yml
143 lines (130 loc) · 2.83 KB
/
compose.dev.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
x-no-proxy: &no-proxy localhost,127.0.0.1,uclvlddpragae07,uclvlddpragae08,api,web,baserow,redis,celery_worker
x-proxy-common: &proxy-common
NO_PROXY: *no-proxy
no_proxy: *no-proxy
x-build-args-common: &build-args-common
<<: *proxy-common
HYLODE_UID: ${HYLODE_UID}
services:
api:
build:
dockerfile: docker/api/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
env_file: .env.dev
ports:
- ${API_PORT}:8000
networks:
- hyui
web:
build:
dockerfile: docker/web/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
# Using differnt environment variables
env_file: .env.dev
ports:
- ${WEB_PORT}:8000 # switch from 8000 (exposed by gunicorn + app.server) to 8300 which is the dev port
- 10001:10001 # port on which debug.py listens
# add in a volumes section
volumes:
# attach as bind mounts so you can edit the code whilst the container still runs
- ./web/src/web:/app/web
- ./models/src/models:/app/models
depends_on:
- baserow
- api
- redis
networks:
- hyui
redis:
image: redis:7.0-alpine
environment:
<<: *proxy-common
ports:
- 6379:6379
networks:
- hyui
redisinsight:
image: redislabs/redisinsight
environment:
<<: *proxy-common
ports:
- 8309:8001
depends_on:
- redis
volumes:
- redisinsight:/db
networks:
- hyui
celery_worker:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
# mount code directly for development but COPY in production
# (hence delete these lines)
volumes:
- ./web/src/web:/app/web
- ./models/src/models:/app/models
command: /app/start-worker
env_file:
- .env.dev
depends_on:
- redis
networks:
- hyui
celery_beat:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
command: /app/start-beat
env_file:
- .env.dev
depends_on:
- redis
networks:
- hyui
celery_flower:
build:
dockerfile: docker/celery/Dockerfile
args:
<<: *build-args-common
environment:
<<: *proxy-common
command: /app/start-flower
ports:
- "${FLOWER_PORT}:5557"
env_file:
- .env.dev
depends_on:
- redis
- celery_worker
networks:
- hyui
baserow:
image: baserow/baserow:1.16.0
environment:
<<: *proxy-common
env_file: .env.dev
ports:
- ${BASEROW_PORT}:80
- 8443:443
networks:
- hyui
volumes:
- baserow-data:/baserow/data
networks:
hyui:
volumes:
baserow-data:
redisinsight: