-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (73 loc) · 1.73 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
77 lines (73 loc) · 1.73 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
postgres_image:
build: ./postgresql/.
container_name: postgres_db
restart: unless-stopped
env_file: .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PWD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- internal_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
minio_image:
build: ./minio/.
container_name: minio
restart: unless-stopped
env_file: .env
environment:
MINIO_SERVER: ${MINIO_SERVER}
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
MINIO_BUCKET_NAME: ${MINIO_BUCKET_NAME}
MINIO_ACCESS_KEY_ID: ${MINIO_ACCESS_KEY_ID}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
volumes:
- minio_data:/data
ports:
- "9000:9000"
networks:
- internal_net
- external_net
healthcheck:
test: ["CMD", "curl", "-f", "http://minio:9000/minio/health/live"]
interval: 30s
timeout: 10s
retries: 3
collab_server:
build: ./collab_serv/.
container_name: collab_server
restart: unless-stopped
env_file: .env
depends_on:
- postgres_image
- minio_image
volumes:
- cs_data:/var/cs
ports:
- "9090:9090"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8087/rs/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 50s
networks:
- internal_net
- external_net
volumes:
pgdata:
minio_data:
cs_data:
networks:
internal_net:
internal: true
external_net: