This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (95 loc) · 1.84 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3'
services:
database:
image: postgres
environment:
POSTGRES_DB: flanki_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: toor
volumes:
- ${FLANECZKI_DATA}/database:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- app_network
- secret_network
flanki:
build: ./FlankiApp
environment:
- ENABLE_SSL=true
env_file:
- ./Docker_config/app.env
volumes:
- ${FLANECZKI_DATA}/ssl_certs:/ssl_certs
ports:
- "8443:8443"
depends_on:
- database
- image_service
- auth_server
links:
- database
- image_service
networks:
- app_network
- secret_network
image_service:
build: ./ImageServer
ports:
- "5555:5555"
volumes:
- ${FLANECZKI_DATA}/images:/images
networks:
- secret_network
auth_server:
build: ./AuthorizationServer
env_file:
- ./Docker_config/auth.env
ports:
- "5000:5000"
depends_on:
- database
links:
- database
networks:
- secret_network
frontend:
build: ./FrontendServer
ports:
- "443:443"
depends_on:
- load_balancer
environment:
- FRONTEND_BUILD_PATH=/build
- ENABLE_SSL=true
volumes:
- ${FLANECZKI_DATA}/frontend/build:/build
- ${FLANECZKI_DATA}/ssl_certs:/ssl_certs
networks:
- app_network
load_balancer:
build: ./Nginx
ports:
- "80:80"
networks:
- app_network
chat:
build: ./Chat
ports:
- "8081:8081"
depends_on:
- flanki
networks:
- app_network
- secret_network
env_file:
- ./Docker_config/chat.env
volumes:
- ${FLANECZKI_DATA}/ssl_certs:/ssl_certs
volumes:
database-volume:
images-volume:
networks:
secret_network:
internal: true
app_network: