forked from ky28059/bctf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 946 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
41
42
43
44
45
46
47
48
version: '2.2'
services:
rctf:
image: redpwn/rctf:${RCTF_GIT_REF}
restart: always
ports:
- '9001:80'
networks:
- rctf
env_file:
- .env
environment:
- PORT=80
volumes:
- ./conf.d:/app/conf.d
depends_on:
- redis
- postgres
redis:
image: redis:6.0.6
restart: always
command: ["redis-server", "--requirepass", "${RCTF_REDIS_PASSWORD}"]
networks:
- rctf
volumes:
- ./data/rctf-redis:/data
postgres:
image: postgres:12.3
restart: always
environment:
- POSTGRES_PASSWORD=${RCTF_DATABASE_PASSWORD}
- POSTGRES_USER=rctf
- POSTGRES_DB=rctf
networks:
- rctf
volumes:
- ./data/rctf-postgres:/var/lib/postgresql/data
bctf:
container_name: bctf-internal
build:
dockerfile: ./Dockerfile
context: ../bctf
ports:
- "9124:3000"
restart: always
networks:
rctf: {}