-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (96 loc) · 2.57 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.11'
services:
nginx:
restart: always
image: nginx:1.25-alpine
ports:
- "80:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/clone_sound_cloud/django_static
- media_volume:/app/clone_sound_cloud/media
server:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/backend/Dockerfile
entrypoint: /app/docker/backend/server-entrypoint.sh
volumes:
- static_volume:/app/clone_sound_cloud/django_static
- media_volume:/app/clone_sound_cloud/media
expose:
- "8000:8000"
env_file:
- .env.docker
worker:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/backend/Dockerfile
entrypoint: /app/docker/backend/worker-entrypoint.sh
volumes:
- static_volume:/app/clone_sound_cloud/django_static
env_file:
- .env.docker
depends_on:
- server
- redis
celery-beat:
restart: unless-stopped
build:
context: .
dockerfile: ./docker/backend/Dockerfile
entrypoint: /app/docker/backend/celery-beat-entrypoint.sh
volumes:
- static_volume:/app/clone_sound_cloud/django_static
env_file:
- .env.docker
depends_on:
- server
- redis
- worker
flower:
restart: unless-stopped
image: mher/flower
command: celery flower --persisten=True
env_file:
- .env.docker
ports:
- "8889:8889"
volumes:
- flower_data:/data
depends_on:
- worker
- celery-beat
redis:
restart: unless-stopped
image: redis:7.0.5-alpine
expose:
- "6379"
db:
image: postgres:15.0-alpine
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env.docker
expose:
- "5432"
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4_container
restart: unless-stopped
ports:
- "8888:80"
env_file:
- .env.docker
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- db
volumes:
static_volume: {}
media_volume: {}
postgres_data: {}
pgadmin-data: {}
flower_data: {}