-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (53 loc) · 1.47 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
version: "3.9"
x-logging: &logging
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
services:
sfs.local:
build:
context: .
dockerfile: Dockerfile
restart: always
command: poetry run app
depends_on:
- mongo.local
- minio.local
volumes:
- ./src:/app/src
logging: *logging
minio.local:
image: minio/minio:RELEASE.2024-10-13T13-34-11Z
restart: always
environment:
MINIO_ROOT_USER: "${STORAGE_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${STORAGE_ROOT_PASSWORD}"
MINIO_ACCESS_KEY: "${STORAGE_ACCESS_KEY}"
MINIO_SECRET_KEY: "${STORAGE_SECRET_KEY}"
MINIO_REGION_NAME: "${STORAGE_REGION_NAME:-af-south-1}"
healthcheck:
test: [ "CMD", "mc", "ready", "local" ]
interval: 5s
timeout: 5s
retries: 5
command: server --console-address ":${STORAGE_API_PORT}" /data
volumes:
- minio_storage:/data
logging: *logging
mongo.local:
image: mongo:7.0.12
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGO_USER}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGO_PASSWORD}"
volumes:
- sfs_data:/data/db
logging: *logging
networks:
sfs_network:
driver: bridge
volumes:
sfs_data:
minio_storage:
driver: local