-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (73 loc) · 1.69 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
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
version: "3.8"
networks:
caknet:
driver: bridge
ipam:
driver: default
config:
- subnet: "172.16.238.0/29"
services:
web:
build: .
hostname: cakCore
deploy:
restart_policy:
condition: on-failure
depends_on:
- "mongo"
- "minio"
environment:
PORT: ${PORT}
HOSTNAME: ${HOSTNAME}
MONGO_ENDPOINT: ${MONGO_ENDPOINT}
MONGO_PORT: ${MONGO_PORT}
MONGO_PATH: ${MONGO_PATH}
MONGO_RETRY_WRITES: ${MONGO_RETRY_WRITES}
MONGO_USERNAME: ${MONGO_USERNAME}
MONGO_PASSWORD: ${MONGO_PASSWORD}
MINIO_ENDPOINT: ${MINIO_ENDPOINT}
MINIO_PORT: ${MINIO_PORT}
MINIO_USE_SSL: ${MINIO_USE_SSL}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
ports:
- "2999:2999"
links:
- mongo
- minio
networks:
caknet:
ipv4_address: ${WEB_ENDPOINT}
restart_policy:
condition: on-failure
mongo:
image: mongo
hostname: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- mongoData:/data/db
networks:
caknet:
ipv4_address: ${MONGO_ENDPOINT}
minio:
image: minio/minio
hostname: minio
volumes:
- minioData:/data
command: server /data
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
networks:
caknet:
ipv4_address: ${MINIO_ENDPOINT}
volumes:
minioData: {}
mongoData: {}