-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.2 KB
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
version: '3.4'
services:
lpvs:
build:
context: .
image: ghcr.io/samsung/lpvs:latest
restart: always
ports:
- "7896:7896"
environment:
## Database Configuration
- spring.datasource.url=jdbc:mysql://mysqldb:3306/lpvs
- spring.datasource.username=root
- spring.datasource.password=
- spring.jpa.properties.hibernate.default_schema=lpvs
## Github data for fetching code
- github.login=
- github.token=
- github.api.url=https://api.github.com
- github.secret=LPVS
depends_on:
mysqldb:
condition: service_healthy
networks:
- lpvs
mysqldb:
image: mysql:latest
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ""
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
#- ./mysql-lpvs-data:/var/lib/mysql # db storage
- ./src/main/resources/database_dump.sql:/docker-entrypoint-initdb.d/init.sql # init for creating db lpvs with predifined tables
##- ./conf/my.cnf:/etc/mysql/my.cnf # custom mysql config- if needed
networks:
- lpvs
networks:
lpvs: