-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.yml
84 lines (77 loc) · 1.84 KB
/
production.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
version: '3.7'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
user_uploads: # Bind to a local directory on the host system
# Ref: https://github.com/docker/compose/issues/2957#issuecomment-403175803
driver: local
driver_opts:
type: none
o: bind
device:
/var/lz-uploads/
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: locuszoom_plotting_service_production_django
depends_on:
- postgres
- redis
volumes:
- user_uploads:/lz-uploads:z
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start
ports:
- "5000:5000"
restart:
unless-stopped
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: locuszoom_plotting_service_production_postgres
ports:
- "5432:5432"
command:
- "postgres"
- "-c"
- "max_connections=500"
- "-c"
- "shared_buffers=1GB"
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgres
restart:
unless-stopped
redis:
image: redis:5.0
restart:
unless-stopped
celeryworker:
<<: *django
image: locuszoom_plotting_service_production_celeryworker
command: /start-celeryworker
ports: []
restart:
unless-stopped
celerybeat:
<<: *django
image: locuszoom_plotting_service_production_celerybeat
command: /start-celerybeat
ports: []
restart:
unless-stopped
flower:
<<: *django
image: locuszoom_plotting_service_production_flower
ports:
- "5555:5555"
command: /start-flower
restart:
unless-stopped