-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
35 lines (33 loc) · 976 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
version: "3.9"
services:
web:
build:
context: ..
dockerfile: docker/Dockerfile
#image: rphydra/seedventures:latest
ports:
- 8443:8443
- 8080:8080
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://db/seedventures?sessionVariables=sql_mode='NO_ENGINE_SUBSTITUTION'&jdbcCompliantTruncation=false
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=password
command: ["./wait-for-it.sh", "db:3306", "--", "java", "-jar", "app.jar"]
restart: on-failure
# angular:
# build:
# context: ..
# dockerfile: docker/angular.Dockerfile
# ports:
# - 4200:4200
# links:
# - web
# command: bash -c "npm install && ng serve --host 0.0.0.0 --port 4200 --proxy-config proxy.conf.json"
# restart: on-failure
db:
image: mysql:8.0.36-oracle
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=seedventures
volumes:
- ./mysql:/var/lib/mysql