-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
62 lines (58 loc) · 1.54 KB
/
docker-compose.yaml
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
version: "3.7"
services:
postgres:
build:
context: .
dockerfile: database.dockerfile
restart: always
shm_size: 2gb
env_file:
- ./backend/.env
volumes:
- ./deploy/pg-init.sh:/docker-entrypoint-initdb.d/pg-init.sh
- ./backend/main/management/backup_helper.py:/backup_helper.py
- ./postgres-data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: backend.dockerfile
restart: always
env_file:
- ./backend/.env
volumes:
- ./backend/:/patentinspector
depends_on:
- postgres
links:
- postgres
certs:
image: ubuntu
volumes:
- .:/app
command: bash -c 'cd app && ./deploy/dummy-certs.sh'
frontend:
build:
context: .
dockerfile: frontend.dockerfile
env_file:
- ./backend/.env
volumes:
- ./frontend-dist/:/frontend/dist
nginx:
image: nginx
restart: always
ports:
- "443:443"
- "80:80"
volumes:
- ./deploy/nginx.conf:/etc/nginx/nginx.conf:ro
- .:/app
depends_on:
certs:
condition: service_completed_successfully
frontend:
condition: service_completed_successfully
backend:
condition: service_started
links:
- backend