-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.42 KB
/
docker-compose.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: mfo
services:
app:
build:
context: .
dockerfile: deploy/app/dockerfile
volumes:
- type: bind
source: ./mfo
target: /mfo-app/mfo
read_only: true
- type: bind
source: ./tests
target: /mfo-app/tests
read_only: true
- type: bind
source: ./production.env
target: /mfo-app/production.env
read_only: true
networks:
- frontend_network
- backend_network
depends_on:
- db
- cache
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: fake-password
POSTGRES_DB: postgres
volumes:
- type: volume
source: data
target: /var/lib/postgresql/data
networks:
- backend_network
cache:
image: redis
networks:
- backend_network
nginx:
image: nginx
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: ./deploy/nginx/configs/host
target: /etc/nginx/conf.d
read_only: true
- type: bind
source: ./deploy/nginx/certs/host
target: /etc/nginx/certs
read_only: true
networks:
- frontend_network
- external_network
depends_on:
- app
networks:
backend_network:
driver: bridge
internal: true
frontend_network:
driver: bridge
internal: true
external_network:
driver: bridge
volumes:
data: