-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-dev.yml
45 lines (45 loc) · 1.31 KB
/
docker-compose-dev.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
services:
superconductor-db:
container_name: superconductor-mysqldb
image: mysql:8.4.0
ports:
- "3306:3306"
labels:
org.springframework.boot.service-connection: mysql
environment:
MYSQL_DATABASE: superconductor
# set below db name and credentials as desired
MYSQL_USER: mysqluser
MYSQL_PASSWORD: mysqluserpass
MYSQL_ROOT_PASSWORD: mysqlrootuserpass
networks:
docker-network:
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "superconductor-mysqldb"]
retries: 10
interval: 3s
timeout: 30s
superconductor:
container_name: superconductor-app
image: superconductor:1.7.5
ports:
- "5555:5555"
depends_on:
superconductor-db:
condition: service_healthy
environment:
SPRING_PROFILES_ACTIVE: dev
SPRING_DATASOURCE_URL: jdbc:mysql://superconductor-mysqldb:3306/superconductor
# set below spring datasource parameters and credentials as desired
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqluserpass
# authentication is off by default. update below with "true" to activate
superconductor.auth.active: false
networks:
docker-network:
volumes:
superconductor-db:
driver: local
networks:
docker-network:
driver: bridge