forked from hotosm/drone-tm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.64 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
version: "3"
volumes:
dtm_db_data:
services:
web:
build:
context: .
dockerfile: src/backend/Dockerfile
restart: always
ports:
- 8002:8000
volumes:
- ./src/backend:/project/src/backend
env_file: .env
networks:
- dtm-network
container_name: api
db:
image: postgis/postgis:14-3.4-alpine
restart: always
volumes:
- dtm_db_data:/var/lib/postgresql/data/
env_file: .env
networks:
- dtm-network
container_name: db
healthcheck:
test: pg_isready -U ${POSTGRES_USER:-dtm} -d ${POSTGRES_DB:-dtm_db}
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
minio:
image: "docker.io/minio/minio:${MINIO_TAG:-RELEASE.2023-10-25T06-33-25Z}"
restart: always
command: server /export --console-address 0.0.0.0:9090 --address 0.0.0.0:9000
volumes:
- ./DockerData/minio_data:/export
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY:-dtm_user}
MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY:-somelongpassword}
MINIO_CONSOLE_ADDRESS: ":9090"
MINIO_ENDPOINT: ${S3_ENDPOINT:-http://s3:9000}
ports:
- 9000:9000
- 9090:9090
networks:
- dtm-network
createbuckets:
image: "docker.io/minio/minio:${MINIO_TAG:-RELEASE.2023-10-25T06-33-25Z}"
entrypoint: >
/bin/sh -c " mc config host add minio http://minio:9000 \$S3_ACCESS_KEY \$S3_SECRET_KEY; mc mb minio/\$S3_BUCKET_NAME; mc anonymous set download minio/\$S3_BUCKET_NAME/publicuploads/; exit 0; "
env_file:
- .env
depends_on:
- minio
networks:
- dtm-network
networks:
dtm-network:
name: dtm-network