-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
42 lines (35 loc) · 860 Bytes
/
docker-compose.deploy.yml
File metadata and controls
42 lines (35 loc) · 860 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
version: '3'
services:
backend:
image: registry.gitlab.propulsion-home.ch/full-stack/batch-12-may-2020/final-projects/technical-interview-platform/technical-challenge-app:master
volumes:
- frontend:/frontend/build
- static-files:/static-files
- media-files:/backend/media-files
env_file:
- ./env/prod.env
command: 'sh /scripts/run.sh'
depends_on:
- db
db:
image: postgres:11
env_file:
- ./env/prod.env
volumes:
- postgres_db:/var/lib/postgresql/data
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- static-files:/static-files
- media-files:/media-files
- frontend:/frontend
- /etc/letsencrypt/:/etc/letsencrypt/
volumes:
postgres_db:
static-files:
media-files:
frontend: