-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (68 loc) · 1.44 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
x-function: &backend
env_file: .env
build:
context: .
dockerfile: ./compose/backend/Dockerfile
args:
DEBUG_BUILD: true
volumes:
- ./src/backend:/app/backend
- ./src/images/webcams:/app/images/webcams
stdin_open: true
tty: true
depends_on:
- db
- redis
volumes:
redis:
postgres:
driver: local
services:
django:
<<: *backend
container_name: django
ports:
- "8000:8000"
command: /start.sh
tasks:
<<: *backend
container_name: tasks
command: /start_tasks.sh
node:
env_file: .env
container_name: node
build:
context: ./
dockerfile: ./compose/frontend/Dockerfile
args:
DEBUG_BUILD: true
FONTAWESOME_PACKAGE_TOKEN: ${FONTAWESOME_PACKAGE_TOKEN}
stdin_open: true
tty: true
ports:
- "3000:3000"
volumes:
- ./src/frontend:/app
# One-way volume to use node_modules from inside image
- /app/node_modules
- ./src/images/webcams:/app/images/webcams
# depends_on:
# - django
command: npm run start-frontend
db:
env_file: .env
image: postgis/postgis:15-3.3-alpine
container_name: postgres
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: "redis:6.2"
container_name: redis
command: redis-server --appendonly yes
volumes:
- redis:/data
ports:
- "6379:6379"