-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (66 loc) · 1.23 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
version: '3.7'
volumes:
postgres_data: {}
local_bitnami_redis_data: {}
services:
web:
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
image: skillforge
stdin_open: true
volumes:
- .:/code
- ./static:/static
ports:
- "8000:8000"
depends_on:
- db
- redis
- celery
env_file:
- ./dev.env
restart:
unless-stopped
db:
restart: always
image: postgres:16.2-bullseye
env_file:
- ./dev.env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
redis:
image: redis:alpine
env_file:
- ./dev.env
ports:
- "6379:6379"
hostname: redis
restart:
unless-stopped
celery:
build:
context: .
dockerfile: Dockerfile
command: celery -A skillforge worker -l info
volumes:
- .:/code
depends_on:
- db
- redis
restart: on-failure
flower:
build:
context: .
dockerfile: Dockerfile
command: celery -A skillforge flower
ports:
- "5555:5555"
depends_on:
- celery