-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (44 loc) · 939 Bytes
/
docker-compose.yaml
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
version: "3"
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./video_subtitles_convertor:/app
command: >
sh -c " python3 manage.py wait_for_db &&
python3 manage.py migrate &&
python3 manage.py runserver 0.0.0.0:8000"
env_file:
- ./settings.ini
depends_on:
- db
- redis
db:
image: postgres:13-alpine3.20
environment:
POSTGRES_DB: mydb
POSTGRES_USER: user
POSTGRES_PASSWORD: supersecret
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:alpine
celery:
restart: always
build:
context: .
command: celery -A video_subtitles_convertor worker -l info
volumes:
- ./video_subtitles_convertor:/app
env_file:
- ./settings.ini
depends_on:
- db
- redis
- backend
volumes:
pgdata: