-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 988 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
35
36
37
38
39
40
41
42
43
services:
database:
container_name: Postgres-DB
image: postgres:13
restart: always
environment:
POSTGRES_DB: 'tmu_connect'
POSTGRES_USER: 'admin'
POSTGRES_PASSWORD: 'password'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d tmu_connect" ]
interval: 5s
timeout: 2s
retries: 20
ports:
- "5432:5432"
volumes:
- pg-db:/var/lib/postgresql/data
- ./server/schema/schema.sql:/docker-entrypoint-initdb.d/schema.sql
minio:
image: 'minio/minio:latest'
ports:
- '9000:9000'
- '9090:9090'
environment:
MINIO_ROOT_USER: 'root'
MINIO_ROOT_PASSWORD: 'password'
volumes:
- 'minio:/data/minio'
command: minio server /data/minio --console-address ":9090"
cache:
image: redis:latest
ports:
- '6379:6379'
volumes:
- redis_cache:/data
volumes:
minio:
driver: local
pg-db:
driver: local
redis_cache:
driver: local