-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.28 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
services:
web:
build: .
#command: "gunicorn main:app --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 --reload"
command: sleep 999999
#command: celery -A main flower
ports:
- "5555:5555"
volumes:
- ./src:/data
environment:
STORAGE_TYPE: object
STORAGE_OBJECT_ENDPOINT: store:9000
STORAGE_OBJECT_ACCESS_KEY: steamcmd
STORAGE_OBJECT_SECRET_KEY: steamcmd
STORAGE_OBJECT_BUCKET: steamcmd
REDIS_HOST: broker
REDIS_PORT: 6379
LOG_LEVEL: info
PYTHONUNBUFFERED: TRUE
restart: always
broker:
image: redis:7.4
ports:
- "6379:6379"
store:
image: quay.io/minio/minio:latest
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: steamcmd
MINIO_ROOT_PASSWORD: steamcmd
setup:
image: minio/mc
depends_on:
- store
environment:
MINIO_ROOT_USER: steamcmd
MINIO_ROOT_PASSWORD: steamcmd
MINIO_BUCKET_NAME: steamcmd
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add store http://store:9000 steamcmd steamcmd;
/usr/bin/mc mb --ignore-existing store/steamcmd;
/usr/bin/mc anonymous set public store/steamcmd;
exit 0;
"