-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (47 loc) · 1.2 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
services:
db:
image: kartoza/postgis:16
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,postgis_topology
- EXTRA_CONF=log_min_messages = ${DB_LOG_LEVEL:-FATAL}
user: ${UID}
ports:
- ${DB_PORT}:5432
volumes:
- type: bind
source: ${PWD}/.volumes/postgresql
target: /var/lib/postgresql
s3:
image: minio/minio
env_file: ./minio.env
user: ${UID}
command: server /data --console-address ":9001"
volumes:
- type: bind
source: ${PWD}/.volumes/minio
target: /data
ports:
- 9090:${S3_PORT:-9000}
- 9001:9001
s3-client:
image: minio/mc
links:
- s3
env_file: ./minio.env
restart: on-failure
entrypoint: >
/bin/sh -c "
set +o history;
while ! echo > /dev/tcp/s3/${S3_PORT:-9000};
do
echo waiting for minio;
sleep 1;
done;
echo minio server is up;
/usr/bin/mc alias set minio http://s3:${S3_PORT:-9000} minioadmin minioadmin;
/usr/bin/mc policy set download minio/service-stac-local;
exit 0;
"