forked from noctf-project/noCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 885 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 885 Bytes
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
# TODO: make this auto-migrate
services:
server:
image: ghcr.io/noctf-project/noctf/server
build:
context: .
dockerfile: Dockerfile
target: out_server
depends_on:
- redis
- nats
- postgres
environment:
NATS_URL: "nats://nats:4222"
REDIS_URL: "redis://redis:6379"
POSTGRES_URL: "postgres://postgres:noctf@postgres/noctf"
HOST: "::"
ENABLE_SWAGGER: 0
ALLOWED_ORIGINS: "example.com,localhost"
web:
image: ghcr.io/noctf-project/noctf/web
build:
context: .
dockerfile: Dockerfile
target: out_web
redis:
image: valkey/valkey:8-alpine
nats:
image: nats
command: -js
postgres:
image: postgres:17-alpine
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=noctf
- POSTGRES_DB=noctf
volumes:
postgres: