-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (63 loc) · 1.3 KB
/
docker-compose.yaml
File metadata and controls
69 lines (63 loc) · 1.3 KB
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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
target: dev
restart: always
container_name: app
depends_on:
- db
- redis
- worker
ports:
- 8000:8000
env_file:
- ./secrets/.env
volumes:
- .:/code
- python-packages:/usr/local/lib/python3.10/site-packages
- python-bin:/usr/local/bin
command: /bin/bash scripts/start-dev.sh
worker:
build:
context: .
dockerfile: Dockerfile
target: dev
restart: always
container_name: worker
depends_on:
- redis
env_file:
- ./secrets/.env
volumes:
- .:/code
- python-packages:/usr/local/lib/python3.10/site-packages
- python-bin:/usr/local/bin
command: /bin/bash scripts/start-worker.sh
db:
image: postgres
restart: always
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_DB: app
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- db-volume:/data/postgres/:/var/lib/postgresql/data
redis:
image: redis
restart: always
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-volume:/data/redis/:/data
volumes:
python-packages:
python-bin:
db-volume:
redis-volume: