-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
120 lines (112 loc) · 2.42 KB
/
docker-compose.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
postgres:
healthcheck:
test: pg_isready -U ${DB_USER}
interval: 5s
timeout: 3s
retries: 3
start_period: 5s
networks:
- api
ports:
- 5432:5432
image: docker.io/postgres:15-bookworm
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 3s
timeout: 3s
retries: 3
start_period: 1s
networks:
- api
image:
redis
ports:
- 6379:6379
pelias:
networks:
- api
ports:
- 6800:3000
image: pelias/parser
meshdb:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: curl http://127.0.0.1:8081/api/v1
interval: 3s
timeout: 3s
retries: 3
start_period: 4s
networks:
- api
env_file:
- .env
volumes:
- static_files:/opt/meshdb/static
- meshdb_logs:/var/log/meshdb
image: willnilges/meshdb:main
build:
context: .
dockerfile: ./Dockerfile
nginx:
depends_on:
meshdb:
condition: service_healthy
networks:
- api
expose:
- 80
# Useful for debugging, but should be commented out otherwise.
#ports:
# - 80:80
# - 443:443
image: nginx
volumes:
- ./nginx:/etc/nginx/conf.d
- static_files:/var/www/html/static
minio:
image: quay.io/minio/minio
ports:
- '9000:9000'
- '9001:9001'
#networks:
# - api
volumes:
- 'minio_data:/data'
command: |
server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=sampleaccesskey
- MINIO_ROOT_PASSWORD=samplesecretkey
- MINIO_DEFAULT_BUCKETS=meshdb-join-form-log
# I hate computers: https://github.com/minio/minio/issues/4769
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 sampleaccesskey samplesecretkey;
/usr/bin/mc mb myminio/meshdb-join-form-log;
exit 0;
"
volumes:
postgres_data:
static_files:
meshdb_logs:
minio_data:
networks:
api:
external: $COMPOSE_EXTERNAL_NETWORK
name: $COMPOSE_NETWORK_NAME