forked from wsporto/typesql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (34 loc) · 1010 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
version: '3'
services:
mysql-dev:
# image: "mysql:5.7.41"
image: "mysql:8.0.33"
container_name: "mysql-dev"
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: "mydb"
flyway:
image: flyway/flyway:7.15
container_name: "flyway"
command: -url=jdbc:mysql://root:[email protected]:3306/mydb -connectRetries=60 migrate
volumes:
- ./dbschema:/flyway/sql
depends_on:
- mysql-dev
sqlite-flyway:
image: flyway/flyway:7.15
container_name: "sqlite_flyway"
command: -url=jdbc:sqlite:/flyway/db/mydb.db migrate
volumes:
- .:/flyway/db
- ./sqlite-migrations:/flyway/sql
sqlite-attached-flyway:
image: flyway/flyway:7.15
container_name: "sqlite_attached_flyway"
command: -url=jdbc:sqlite:/flyway/db/users.db migrate
volumes:
- .:/flyway/db
- ./sqlite-attached-migrations:/flyway/sql