generated from geoadmin/template-service-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.5 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
services:
wms-bod:
image: camptocamp/mapserver:7.6
environment:
- MS_DEBUGLEVEL=0
- LISTEN_PORT_80=1
ports:
- 8000:80
volumes:
- type: bind
source: ${PWD}/scripts/local-mapserver/inline_points.map
target: /etc/mapserver/mapserver.map
db:
image: kartoza/postgis:12.0
environment:
- POSTGRES_DB=bod_local
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 15432:5432
volumes:
- type: bind
source: ${PWD}/scripts/sql/init_local_db.sql
target: /docker-entrypoint-initdb.d/setup-db.sql
s3:
image: minio/minio:RELEASE.2023-05-04T21-44-30Z
env_file: ./minio.env
command: server /data --console-address ":9001"
volumes:
- type: bind
source: ${PWD}/.volumes/minio
target: /data
ports:
- 9000:9000
- 9001:9001
s3-client:
image: minio/mc:RELEASE.2023-05-04T18-10-16Z
links:
- s3
env_file: ./minio.env
restart: on-failure
entrypoint: >
/bin/sh -c "
set +o history;
while ! echo > /dev/tcp/s3/9000;
do
echo waiting for minio;
sleep 1;
done;
echo minio server is up;
/usr/bin/mc alias set minio http://s3:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD};
echo create bucket $${AWS_S3_BUCKET_NAME};
/usr/bin/mc mb -p minio/$${AWS_S3_BUCKET_NAME};
/usr/bin/mc anonymous set public minio/$${AWS_S3_BUCKET_NAME};
exit 0;
"