-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.deploy.yml
59 lines (51 loc) · 1.32 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
59
version: '3'
services:
email:
image: registry.gitlab.propulsion-home.ch/full-stack/batch-10-november-2019/final-projects/razzpay
restart: always
env_file:
- ./envs/dev.env
command: 'python manage.py send_mail'
#command: "tail -f /dev/null"
volumes:
- ./backend:/backend
- media-files:/media-files
- static-files:/static-files
depends_on:
- postgres
- backend
postgres:
image: postgres:12.1
env_file:
- ./envs/prod.env
volumes:
- postgres:/var/lib/postgresql/data
backend:
image: registry.gitlab.propulsion-home.ch/full-stack/batch-10-november-2019/final-projects/razzpay:master
env_file:
- ./envs/prod.env
command: "sh ../scripts/run.sh" # notice the different script and env files for development and production
depends_on:
- postgres
volumes:
- media-files:/media-files
- static-files:/static-files
- frontend:/frontend-build
- ./scripts:/scripts
nginx:
image: nginx:1.17.6
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
- frontend:/frontend
volumes:
postgres:
static-files:
media-files:
frontend: