-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
124 lines (106 loc) · 2.77 KB
/
docker-compose.override.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
version: "3.8"
x-core-build-env:
&core-build-env
USER_NAME: "${DOCKER_USER_NAME}"
USER_UID: "${DOCKER_USER_UID}"
USER_GID: "${DOCKER_USER_GID}"
x-core-dev-env:
&core-dev-env
DEBUG: "True"
ALLOWED_HOSTS: "localhost 127.0.0.1 [::1] ${APP_DOMAIN}"
APP_SITE_NAME: "${APP_SITE_NAME} (dev)"
x-frontend-build-env:
&frontend-build-env
NODE_VERSION: "${FRONTEND_NODE_VERSION}"
USER_NAME: "${DOCKER_USER_NAME}"
USER_UID: "${DOCKER_USER_UID}"
USER_GID: "${DOCKER_USER_GID}"
services:
core:
build:
context: .
dockerfile: ./services/core/Dockerfile
args:
<<: *core-build-env
volumes:
- ./.git:/code/.git
- ./.gitignore:/code/.gitignore
- ./.vscode/settings.core.json:/code/.vscode/settings.json
- ./services/core:/code/services/core
- ./services/frontend/dist:/code/services/frontend/dist:ro
- ./services/frontend/webpack-stats.json:/code/services/frontend/webpack-stats.json:ro
- core-venv:/code/services/core/venv
- core-tox:/code/services/core/.tox
environment:
<<: *core-dev-env
ports:
- "${CORE_HOST_PORT_DEV}:8000"
command:
- "./services/core/utils/wait-for-postgres.sh"
- "./services/core/utils/wait-for-rabbitmq.sh"
- "make"
- "-C"
- "/code/services/core"
- "sleep"
core-worker-gateway:
command:
- "/bin/true"
restart: "no"
core-worker-computation:
command:
- "/bin/true"
restart: "no"
core-db:
ports:
- "${POSTGRES_HOST_PORT_DEV}:5432"
brocker:
ports:
- "${RABBITMQ_HOST_PORT_DEV}:5672"
cache:
ports:
- "${REDIS_HOST_PORT_DEV}:6379"
frontend:
build:
context: ./services/frontend
args:
<<: *frontend-build-env
image: ${APP_NAME}-frontend:${APP_VERSION}
volumes:
- ./.git:/code/.git
- ./.gitignore:/code/.gitignore
- ./services/frontend:/code/services/frontend
- frontend-node_modules:/code/services/frontend/node_modules
environment:
NODE_ENV: "development"
ports:
- "${FRONTEND_HOST_PORT_DEV}:3000"
command:
- "make"
- "-C"
- "/code/services/frontend"
- "sleep"
volumes:
core-media:
external: false
name: "${APP_NAME}_dev_core-media"
core-static:
external: false
name: "${APP_NAME}_dev_core-static"
core-db-data:
external: false
name: "${APP_NAME}_dev_core-db-data"
brocker-data:
external: false
name: "${APP_NAME}_dev_brocker-data"
cache-data:
external: false
name: "${APP_NAME}_dev_cache-data"
core-venv:
external: false
name: "${APP_NAME}_dev_core-venv"
core-tox:
external: false
name: "${APP_NAME}_dev_core-tox"
frontend-node_modules:
external: false
name: "${APP_NAME}_dev_frontend-node_modules"