-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (68 loc) · 2.06 KB
/
docker-compose.yml
File metadata and controls
68 lines (68 loc) · 2.06 KB
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
version: "2"
services:
redis:
image: redis:4.0
container_name: redis
restart: always
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- "./docker/redis/:/data/"
solve:
build:
context: ./solve
dockerfile: Dockerfile
args:
INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
TRUSTED_HOST: mirrors.aliyun.com
image: solve:${SOLVE_VERSION}
depends_on:
- redis
volumes:
- "${DATA_PATH_LOCAL}:${DATA_PATH_DOCKER}"
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
AES_KEY: ${AES_KEY}
privileged: true
solve-backend:
build:
context: ./solve-backend
dockerfile: Dockerfile
args:
INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
TRUSTED_HOST: mirrors.aliyun.com
image: solve-backend:${SOLVE_BACKEND_VERSION}
depends_on:
- redis
volumes:
- "${DATA_PATH_LOCAL}:${DATA_PATH_DOCKER}"
- "./docker/solve-backend/db.sqlite3:/data/solve-backend/db.sqlite3"
ports:
- "${BACKEND_PORT}:8000"
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
REDIS_URL: redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/6
SECRET_KEY: ${SECRET_KEY}
MONGO_URI: ${MONGO_URI}
MONGO_DB: ${MONGO_DB}
DATA_PATH: ${DATA_PATH_DOCKER}
privileged: true
solve-frontend:
build:
context: ./solve-frontend
dockerfile: Dockerfile
args:
REGISTRY: https://registry.npmmirror.com/
image: solve-frontend:${SOLVE_FRONTEND_VERSION}
depends_on:
- solve-backend
ports:
- "${FRONTEND_PORT}:8080"
environment:
BACKEND_HOST: ${BACKEND_HOST}
BACKEND_PORT: ${BACKEND_PORT}
BACKEND_NAME: ${BACKEND_NAME}
privileged: true