-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·106 lines (103 loc) · 2.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·106 lines (103 loc) · 2.19 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
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
100
101
102
103
104
105
106
version: '3.3'
services:
backend:
image: drugstone_backend
container_name: drugstone_backend
command:
- "sh"
- "scripts/docker-entrypoint.sh"
build: .
env_file:
- 'docker-django.env.dev'
restart: always
user: '0'
volumes:
- drugstone_db_schema_volume:/usr/src/drugstone/drugstone/migrations
- ./data:/usr/src/drugstone/data
ports:
- 8001:8000
networks:
- drugstone_net
depends_on:
- db
- redis
db:
image: postgres:15
container_name: drugstone_postgres
restart: always
hostname: drugstone_postgres
ports:
- 5432:5432
networks:
- drugstone_net
volumes:
- drugstone_db_volume:/var/lib/postgresql/data
environment:
- POSTGRES_DB=drugstone
- POSTGRES_USER=drugstone
- POSTGRES_PASSWORD=t6278yczAH7rPKVMxaDD
command:
- "postgres"
- "-c"
- "max_connections=10000"
- "-c"
- "shared_buffers=2GB"
redis:
image: redis:8
container_name: drugstone_redis
restart: always
command: ["redis-server"]
networks:
- drugstone_net
# ports:
# - 6379:6379
celery:
command:
- "sh"
- "scripts/start_celery_worker.sh"
restart: always
image: drugstone_backend
container_name: drugstone_celery
hostname: drugstone_celery
volumes:
- ./data:/usr/src/drugstone/data
env_file:
- './docker-django.env.dev'
depends_on:
- redis
- db
networks:
- drugstone_net
celery-beat:
command:
- "sh"
- "scripts/start_celery_beat.sh"
restart: always
image: drugstone_backend
container_name: drugstone_celery_beat
hostname: drugstone_celery_beat
env_file:
- './docker-django.env.dev'
depends_on:
- redis
- db
networks:
- drugstone_net
# flower:
# image: mher/flower
# container_name: drugstone_flower
# env_file:
# - './docker-django.env.dev'
# ports:
# - 8888:8888
# networks:
# - drugstone_net
networks:
drugstone_net:
volumes:
drugstone_db_volume:
# external: true
drugstone_db_schema_volume:
# external: true
drugstone_data_volume:
# external: true