-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·45 lines (42 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·45 lines (42 loc) · 911 Bytes
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'
services:
java-srv:
build: java-srv
volumes:
- ./java-srv/log:/root/log
depends_on:
- liquibase-srv
links:
- "db:db"
liquibase-srv:
image: webdevops/liquibase:mysql
command: update
volumes:
- ./liquibase-srv:/liquibase
environment:
- LIQUIBASE_URL=jdbc:mysql://db:3306/animal
- LIQUIBASE_CHANGELOG=master.xml
- LIQUIBASE_USERNAME=maria
- LIQUIBASE_PASSWORD=pass
depends_on:
- db
links:
- db
db:
image: mariadb:latest
volumes:
# - ./db/data_dump:/var/lib/mysqll
- ./db/sql:/docker-entrypoint-initdb.d
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_USER=maria
- MYSQL_PASSWORD=pass
# adminer:
# image: adminer
# restart: always
# ports:
# - 80:8080
# depends_on:
# - liquibase-srv
# links:
# - "db:db"