-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.deploy.yml
58 lines (52 loc) · 1.17 KB
/
docker-compose.deploy.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
version: '3'
services:
postgres:
image: postgres:12
env_file:
- ./envs/prod.env
volumes:
- postgres:/var/lib/postgresql/data
backend:
image: registry.gitlab.propulsion-home.ch/propulsion/projects/clients/lepi:master
env_file:
- ./envs/prod.env
command: "sh /scripts/run.sh"
depends_on:
- postgres
volumes:
- media-files:/media-files
- static-files:/static-files
redis:
image: redis:latest
restart: always
volumes:
- redis_data:/data
celery:
image: registry.gitlab.propulsion-home.ch/propulsion/projects/clients/lepi:master
restart: always
env_file:
- ./envs/prod.env
command: 'celery -A app worker -l info'
volumes:
- media-files:/media-files
- static-files:/static-files
depends_on:
- postgres
- backend
- redis
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- static-files:/static-files
- media-files:/media-files
- /etc/letsencrypt:/etc/letsencrypt
volumes:
postgres:
static-files:
media-files:
redis_data: