-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
43 lines (38 loc) · 937 Bytes
/
docker-compose.prod.yml
File metadata and controls
43 lines (38 loc) · 937 Bytes
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
version: '3'
services:
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-11-february-2020/group-projects/scorpio/luna:master
restart: always
env_file:
- ./envs/prod.env
command: "sh ../scripts/run.sh"
depends_on:
- postgres
volumes:
- frontend:/frontend
- media-files:/media-files
- static-files:/static-files
nginx:
image: nginx:1.17.6
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- frontend:/frontend
- ./nginx:/etc/nginx/conf.d
- static-files:/static-files
- media-files:/media-files
- /etc/letsencrypt:/etc/letsencrypt
volumes:
postgres:
static-files:
media-files:
frontend:
# compose file reference: https://docs.docker.com/compose/compose-file/