forked from dentist-team/hack_my_teeth
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
43 lines (43 loc) · 905 Bytes
/
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
version: '3.2'
services:
db:
container_name: hackteeth_db
environment:
MYSQL_USER: root
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
MYSQL_DATABASE: dentist
MYSQL_ROOT_HOST: '%'
build:
context: ./mysql_server
dockerfile: Dockerfile
flask:
container_name: hackteeth_api
build:
context: ./flask_server
dockerfile: Dockerfile
command: python simpleFlask.py
restart: always
app:
container_name: hackteeth_app
environment:
DB_ADDRESS: hackteeth_db
DB_PORT: 3306
build:
context: ./java_server
dockerfile: Dockerfile
args:
DB_ADDRESS: hackteeth_db
DB_PORT: 3306
depends_on:
- db
command: "bash ./wait_for_db.sh"
nginx:
container_name: some-nginx
build:
context: ./nginx/
restart: always
ports:
- 80:80
depends_on:
- flask
- app