-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
64 lines (63 loc) · 1.29 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
version: "3.8"
services:
web:
build: .
restart: "always"
ports:
- "8000:8000"
depends_on:
- db
- redis
volumes:
- ./src/:/app
- static:/data/static
env_file:
- .env
rq_worker:
build:
context: .
restart: "always"
depends_on:
- db
- redis
volumes:
- ./src/:/app
- static:/data/static
env_file:
- .env
environment:
- RQWORKER=1
labels:
ofelia.enabled: "true"
ofelia.job-exec.update_users_recent_played_tracks.schedule: "@every 10m"
ofelia.job-exec.update_users_recent_played_tracks.command: "python manage.py update_users_recent_played_tracks"
db:
image: postgres:14.5-alpine
restart: "always"
ports:
- "54321:5432"
volumes:
- pgdata14:/var/lib/postgresql/data/
env_file:
- .env
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
redis:
image: redis:5.0.8
restart: "always"
expose:
- "6379"
ofelia:
image: mcuadros/ofelia:latest
restart: "always"
depends_on:
- rq_worker
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
pgdata:
pgdata14:
static: