forked from acm309/PutongOJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
50 lines (46 loc) · 1.11 KB
/
docker-compose-dev.yml
File metadata and controls
50 lines (46 loc) · 1.11 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
version: '2.1'
services:
rats-db:
image: mongo:latest
container_name: rats-db
restart: always
volumes:
- $PWD/migrations/db:/data/db
- $PWD/migrations/backup:/data/backup
rats-redis:
image: redis:latest
container_name: rats-redis
restart: always
code.mju-rats.com-be:
image: code.mju-rats.com-be
container_name: code.mju-rats.com-be
build: .
environment:
- NODE_ENV=production
- dbURL=mongodb://rats-db:27017/oj
- redisURL=redis://rats-redis:6379
ports:
- 8888:8888
volumes:
- $PWD/data:/app/data
- $PWD/logs:/app/logs
# warning: volumn is not available on building period
depends_on:
- rats-redis
- rats-db
restart: always
cap_add:
- SYS_PTRACE
code.mju-rats.com-fe:
image: code.mju-rats.com-fe
container_name: code.mju-rats.com-fe
build:
context: code.mju-rats.com-FE/
dockerfile: Dockerfile-dev
environment:
- RATS_BE_ADDRESS=http://localhost:8888
ports:
- 3000:3000
depends_on:
- code.mju-rats.com-be
restart: always