-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
44 lines (39 loc) · 1.14 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
# This is a Docker Compose configuration for local use.
# In production use docker-compose.prod.yaml
# Run all services:
# docker compose up --build --detach
services:
api:
build: . # See Dockerfile for more details
depends_on: [ db ]
restart: always
ports:
- "8004:8000"
volumes:
- "./settings.yaml:/code/settings.yaml:ro" # Read-only settings file
env_file: .env # You can specify some Uvicorn settings in .env file
environment:
- TZ=Europe/Moscow # Set the timezone for correct calendar image generation
db:
# See more: https://registry.hub.docker.com/_/mongo
image: "mongo:7.0"
restart: always
volumes:
- "mongodb:/data/db"
ports:
- "27017:27017"
env_file: .env # Set username and password in .env file
minio:
# See more: https://registry.hub.docker.com/minio/minio
image: "minio/minio:RELEASE.2024-05-10T01-41-38Z"
restart: always
ports:
- "9000:9000"
- "9001:9001"
volumes:
- "minio:/data"
command: server /data --console-address ":9001"
env_file: .env # Set username and password in .env file
volumes:
mongodb:
minio: