forked from OrcaCollective/OpenOversight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
63 lines (58 loc) · 1.41 KB
/
docker-compose.dev.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
version: "3.2"
services:
postgres:
ports:
- "5434:5432"
minio:
image: minio/minio
volumes:
- minio:/data
ports:
- "9000:9000"
- "9001:9001"
env_file:
- .env
environment:
MINIO_ROOT_USER: minio
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
createbucket:
image: minio/mc
env_file:
- .env
depends_on:
- minio
# Add the desired bucket, and set its policy to public
entrypoint: >
/bin/sh -c "
sleep 5;
/usr/bin/mc config host add myminio http://minio:9000 minio ${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb myminio/${S3_BUCKET_NAME};
/usr/bin/mc anonymous set public myminio/${S3_BUCKET_NAME};
exit 0;
"
web:
build:
context: .
depends_on:
- postgres
- minio
environment:
ENV: ${ENV:-development}
FLASK_DEBUG: 1
SQLALCHEMY_WARN_20: 1
volumes:
- ./poetry.lock:/usr/src/app/poetry.lock
- ./pyproject.toml:/usr/src/app/pyproject.toml
- ./OpenOversight:/usr/src/app/OpenOversight
- oo-assets:/usr/src/app/OpenOversight/app/static/dist
ports:
- "3000:3000"
volumes:
minio:
# Prevent bind mount from overwriting assets: https://stackoverflow.com/q/57065750
oo-assets: