forked from MarioKartCentral/MarioKartCentral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (90 loc) · 2.66 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.4'
services:
api:
build:
context: ./src/backend/
dockerfile: api.Dockerfile
ports:
- 8000:8000
- 5678:5678
environment:
S3_ACCESS_KEY : ${MINIO_ROOT_USER:-admin}
S3_SECRET_KEY : ${MINIO_ROOT_PASSWORD:-mkcadmin123}
S3_ENDPOINT: http://s3-emulator:9000/
API_ADMIN_EMAIL : ${API_ADMIN_EMAIL:[email protected]}
API_ADMIN_PASSWORD : ${API_ADMIN_PASSWORD:-admin}
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID:-1283454053937971304}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET:-0}
PORT : 8000
DB_PATH : /var/lib/mkc-api/data/mkc.db
ENV : Development
PYTHONDONTWRITEBYTECODE : 1 # this is to prevent __pycache__ files during development
volumes:
- mkc-db:/var/lib/mkc-api/data
- ./src/backend:/usr/src/app
worker:
build:
context: ./src/backend/
dockerfile: worker.Dockerfile
environment:
S3_ACCESS_KEY : ${MINIO_ROOT_USER:-admin}
S3_SECRET_KEY : ${MINIO_ROOT_PASSWORD:-mkcadmin123}
S3_ENDPOINT: http://s3-emulator:9000/
API_ADMIN_EMAIL : ${API_ADMIN_EMAIL:[email protected]}
API_ADMIN_PASSWORD : ${API_ADMIN_PASSWORD:-admin}
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID:-1283454053937971304}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET:-0}
DB_PATH : /var/lib/mkc-api/data/mkc.db
ENV : Development
PYTHONDONTWRITEBYTECODE : 1
PYTHONUNBUFFERED : 1
volumes:
- mkc-db:/var/lib/mkc-api/data
- ./src/backend:/usr/src/app
frontend:
build: ./src/frontend
ports:
- 8001:8001
volumes:
- ./src/frontend:/usr/src/app
cf-worker:
build: ./src/cf-worker
ports:
- 5000:5000
volumes:
- ./src/cf-worker:/usr/src/app
s3-emulator:
command: server /s3/data --console-address ":9001"
image: minio/minio
ports:
- 9000:9000
- 9001:9001
volumes:
- mkc-s3:/s3/data
environment:
MINIO_ROOT_USER : ${MINIO_ROOT_USER:-admin}
MINIO_ROOT_PASSWORD : ${MINIO_ROOT_PASSWORD:-mkcadmin123}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
swagger:
image: 'swaggerapi/swagger-ui'
environment:
- BASE_URL=/swagger
- SWAGGER_JSON_URL=http://localhost:5000/api/schema
- PERSIST_AUTHORIZATION=true
ports:
- 80:8080
sqlite-web:
image: 'coleifer/sqlite-web'
environment:
- SQLITE_DATABASE=/data/mkc.db
volumes:
- mkc-db:/data
ports:
- 7000:8080
volumes:
mkc-db:
mkc-s3: