-
Notifications
You must be signed in to change notification settings - Fork 106
/
docker-compose.yml
82 lines (67 loc) · 2.18 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
volumes:
dev_postgres_data:
driver: local
dev_keys:
driver: local
services:
middleware-dev:
container_name: middleware-dev
build:
context: ./
dockerfile: Dockerfile.dev
args:
ENVIRONMENT: ${ENVIRONMENT}
POSTGRES_DB_ENABLED: ${POSTGRES_DB_ENABLED:-true}
DB_INIT_ENABLED: ${DB_INIT_ENABLED:-true}
REDIS_ENABLED: ${REDIS_ENABLED:-true}
BACKEND_ENABLED: ${BACKEND_ENABLED:-true}
FRONTEND_ENABLED: ${FRONTEND_ENABLED:-true}
CRON_ENABLED: ${CRON_ENABLED:-true}
DB_PORT: ${DB_PORT:-5434}
env_file:
- .env
ports:
- "127.0.0.1:${ANALYTICS_SERVER_PORT:-9696}:${ANALYTICS_SERVER_PORT:-9696}"
- "127.0.0.1:${SYNC_SERVER_PORT:-9697}:${SYNC_SERVER_PORT:-9697}"
- "127.0.0.1:${PORT:-3333}:${PORT:-3333}"
- "127.0.0.1:${DB_PORT:-5434}:${DB_PORT:-5434}"
- "127.0.0.1:${REDIS_PORT:-6385}:${REDIS_PORT:-6385}"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- dev_postgres_data:/var/lib/postgresql/15/main
- dev_keys:/app/backend/analytics_server/mhq/config
develop:
watch:
- action: sync
path: ./backend/analytics_server
target: /app/backend/analytics_server
ignore:
- venv
- __pycache__
- env.example
- action: rebuild
path: ./backend/requirements.txt
- action: rebuild
path: ./backend/dev-requirements.txt
- action: sync+restart
path: ./setup_utils/supervisord.conf
target: /etc/supervisord.conf
- action: rebuild
path: ./setup_utils/init_db.sh
- action: rebuild
path: ./.env
- action: sync+restart
path: ./backend/analytics_server/.env.local
target: /app/backend/analytics_server/.env.local
- action: sync
path: ./web-server
target: /app/web-server
ignore:
- ./web-server/.vscode
- ./web-server/node_modules
- action: rebuild
path: ./web-server/package.json
- action: sync+restart
path: ./setup_utils/
target: /app/setup_utils