-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.06 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
version: "3"
services:
back:
container_name: back
build:
context: .
dockerfile: Dockerfile
ports:
- "3031:3031"
restart: always
depends_on:
- mysql
mysql:
image: mysql
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
cap_add:
- SYS_NICE
environment:
MYSQL_ROOT_PASSWORD: test
ports:
- "3306:3306"
volumes:
- ./backups/backup.sql:/docker-entrypoint-initdb.d/dump.sql
migrate:
image: migrate/migrate
volumes:
- ./migrations:/migrations
command: ["-path", "/migrations", "-database", "mysql://root:test@tcp(mysql:3306)/legendary_waffle?charset=utf8mb4&parseTime=True&loc=Local" , "up"]
links:
- mysql
depends_on:
- mysql
restart: on-failure
minio:
container_name: minio
image: 'bitnami/minio:latest'
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=testtest
- BITNAMI_DEBUG=true
restart: always