This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
forked from ieeta-pt/Diseasecard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·144 lines (133 loc) · 3.64 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '3.7'
services:
mysql:
container_name: dc_mysql
image: mysql:5.6
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
ports:
- ${MYSQL_PORT}:${MYSQL_PORT}
expose:
- ${MYSQL_PORT}
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- ${MYSQL_VOLUME}:/docker-entrypoint-initdb.d/
- mysql_data:/var/lib/mysql
networks:
- backend
dc_redis:
container_name: dc_redis
restart: unless-stopped
image: redis:2.6.17
ports:
- ${REDIS_PORT}
volumes:
- ${REDIS_VOLUME}:/usr/local/etc/redis/redis.conf
- redis_data:/data
networks:
- backend
dc_solr:
container_name: dc_solr
restart: unless-stopped
build: ./docker/solr
ports:
- ${SOLR_PORT}:${SOLR_PORT}
volumes:
- ${SOLR_VOLUME}:/opt/solr/solr/collection1/conf
- solr_data:/opt/solr/solr/collection1/data
networks:
- backend
dc_backend:
env_file: .env
restart: unless-stopped
container_name: dc_backend
depends_on:
- mysql
- dc_redis
- dc_solr
build: ./backend
ports:
- ${BACKEND_PORT}
links:
- mysql:container_mysql
- dc_redis:container_redis
- dc_solr:container_solr
volumes:
- backend_data:/submittedFiles
networks:
- backend
environment:
- WAIT_HOSTS=mysql:3306
dc_reverseproxy:
container_name: dc_reverseproxy
restart: unless-stopped
build: ./docker/reverseproxy
command: ${COMMAND_REVERSEPROXY}
ports:
- ${REVERSEPROXY_PORT}:80
links:
- dc_frontend:container_frontend
- dc_admin:container_admin
- dc_backend:containerbackend
- dc_bypass:container_bypass
networks:
- backend
dc_bypass:
container_name: dc_bypass
restart: unless-stopped
build:
context: ./docker/bypassServer
args:
- SERVERNAME=${SERVERNAME}
ports:
- ${BYPASS_PORT}
networks:
- backend
dc_frontend:
container_name: dc_frontend
restart: unless-stopped
stdin_open: true
depends_on:
- dc_backend
build:
context: ./frontend/
target: ${TARGET_FRONTEND}
args:
- SERVERNAME=${SERVERNAME}
command: ${COMMAND_FRONTEND}
ports:
- ${FRONTEND_PORT}
links:
- dc_admin:container_admin
networks:
- backend
dc_admin:
container_name: dc_admin
restart: unless-stopped
stdin_open: true
depends_on:
- dc_backend
build:
context: ./admin/
target: ${TARGET_ADMIN}
args:
- SERVERNAME=${SERVERNAME}
command: ${COMMAND_ADMIN}
ports:
- ${ADMIN_PORT}
links:
- dc_backend:container_backend
networks:
- backend
networks:
backend:
driver: "bridge"
volumes:
redis_data:
mysql_data:
solr_data:
backend_data: