-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
48 lines (46 loc) · 1.09 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
48
version: "3.8"
services:
mysql-main:
build:
context: ./mysql
dockerfile: Dockerfile
ports:
- ${MAIN_MYSQL_PORT}
volumes:
- data_volume:/var/lib/mysql-local
environment:
MYSQL_ROOT_PASSWORD: ${MAIN_MYSQL_PASSWORD}
MYSQL_DATABASE: ${MAIN_MYSQL_DATABASE}
mysql-test:
build:
context: ./mysql
dockerfile: Dockerfile
ports:
- ${TEST_MYSQL_PORT}
volumes:
- data_volume:/var/lib/mysql-test
environment:
MYSQL_ROOT_PASSWORD: ${TEST_MYSQL_PASSWORD}
MYSQL_DATABASE: ${TEST_MYSQL_DATABASE}
minio:
image: minio/minio
ports:
- ${MINIO_PORT}
environment:
MINIO_ROOT_USER: ${MINIO_USER}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
command: server --address ":9099" /data
redis-local:
image: redis:latest
container_name: redis-test
ports:
- 6379:6379
volumes:
- data_volume:/data
- data_volume:/usr/local/conf/redis.conf
labels:
- name=redis
- mode=standalone
command: redis-server /usr/local/conf/redis.conf
volumes:
data_volume: