-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.test.yaml
47 lines (45 loc) · 1.27 KB
/
docker-compose.test.yaml
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:
mariadb:
image: mariadb:10.6
ports:
- '3307:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test_db
volumes:
- ./src/Faker/Provider/fixture.sql:/docker-entrypoint-initdb.d/fixture.sql
- db_data:/var/lib/mysql
minio:
image: minio/minio
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- ./data/minio:/data
command: server /data --address ":9004" --console-address ":9001"
ports:
- 9004:9004
- 9001:9001
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9004 minio minio123;
/usr/bin/mc mb myminio/somebucketname;
/usr/bin/mc policy set public myminio/somebucketname;
exit 0;
"
ftpserver:
environment:
- FTP_PASS=dbsaver
- FTP_USER=dbsaver
image: garethflowers/ftp-server
restart: always
ports:
- '20-21:20-21/tcp'
- '40000-40009:40000-40009/tcp'
volumes:
db_data: