-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 997 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
44
45
version: '3.2'
services:
db:
container_name: hackteeth_db
environment:
MYSQL_USER: root
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
MYSQL_DATABASE: dentist
MYSQL_ROOT_HOST: '%'
ports:
- 3306:3306
build:
context: .
dockerfile: Dockerfile.db
volumes:
- ./mysql_dump:/docker-entrypoint-initdb.d
flask:
container_name: hackteeth_api
ports:
- 5000:5000
build:
context: ./flask_server
dockerfile: Dockerfile
restart: always
app:
container_name: hackteeth_app
image: whitenguyen2512/hack_my_teeth:latest
ports:
- 8051:8080
depends_on:
- db
command: bash -c "echo 'ok' && java -jar -Dspring.profiles.active=docker /root/hack_my_teeth/target/HackMyTeeth-0.0.1-SNAPSHOT.jar"
nginx:
container_name: some-nginx
image: nginx:1.13
restart: always
ports:
- 80:80
depends_on:
- flask
- app
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d