-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
executable file
·40 lines (40 loc) · 1012 Bytes
/
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
version: "3.7"
services:
ctf-mongodb:
image: "mongo"
container_name: "ctf-mongodb"
ports:
- "127.0.0.1:27017:27017"
volumes:
- db_data:/data/db
ctf-web-api:
build:
context: ./api
# image: "ghcr.io/matthew5025/ctf_platform_api:container-publish"
container_name: "ctf-web-api"
ports:
- "127.0.0.1:20001:20001"
depends_on:
- "ctf-mongodb"
volumes:
- profile_files:/usr/share/nginx/static/profile
- category_files:/usr/share/nginx/static/category
ctf-web-client:
build:
context: ./client
# image: "ghcr.io/matthew5025/ctf_platform_client:container-publish"
container_name: "ctf-web-client"
ports:
- 127.0.0.1:20002:20002
depends_on:
- "ctf-web-api"
volumes:
- profile_files:/usr/share/nginx/static/profile
- category_files:/usr/share/nginx/static/category
volumes:
profile_files:
category_files:
db_data:
networks:
default:
name: ctf_platform_network