forked from BinaryStudioAcademy/bsa-2020-buildeR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.apps.prod.yml
80 lines (74 loc) · 2.4 KB
/
docker-compose.apps.prod.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
78
79
version: '3.8'
services:
builder_api:
image: bsa2020builder/builder_api:latest
container_name: 'builder_api'
restart: on-failure
networks:
- back
ports:
- "5050:5050"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- VAULT_ADDRESS=http://vault:8200
- VAULT_TOKEN_ID=${VAULT_TOKEN_ID}
env_file:
- /etc/environment
volumes:
- ./resources:/app/Resources
builder_processor:
image: bsa2020builder/builder_processor:latest
container_name: 'builder_processor'
restart: on-failure
privileged: true
networks:
- back
ports:
- "5060:5060"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- VAULT_ADDRESS=http://vault:8200
- VAULT_TOKEN_ID=${VAULT_TOKEN_ID}
env_file:
- /etc/environment
volumes:
- /var/run/docker.sock:/var/run/docker.sock
builder_signalr:
image: bsa2020builder/builder_signalr:latest
container_name: 'builder_signalr'
restart: on-failure
networks:
- back
ports:
- "5070:5070"
environment:
ASPNETCORE_ENVIRONMENT: 'Production'
env_file:
- /etc/environment
builder_frontend:
depends_on:
- builder_api
- builder_processor
- builder_signalr
image: bsa2020builder/builder_frontend:latest
container_name: 'builder_frontend'
restart: on-failure
networks:
- back
- front
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- /etc/nginx/dhparam.pem:/etc/nginx/dhparam.pem
- /etc/letsencrypt/live/bsa-builder.xyz/cert.pem:/etc/letsencrypt/live/bsa-builder.xyz/cert.pem
- /etc/letsencrypt/live/bsa-builder.xyz/chain.pem:/etc/letsencrypt/live/bsa-builder.xyz/chain.pem
- /etc/letsencrypt/live/bsa-builder.xyz/fullchain.pem:/etc/letsencrypt/live/bsa-builder.xyz/fullchain.pem
- /etc/letsencrypt/live/bsa-builder.xyz/privkey.pem:/etc/letsencrypt/live/bsa-builder.xyz/privkey.pem
- /var/log/nginx:/var/log/nginx
networks:
back:
driver: bridge
front:
driver: bridge