forked from phannhat17/CTFd-Docker-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.remote.yml
More file actions
35 lines (32 loc) · 982 Bytes
/
docker-compose.remote.yml
File metadata and controls
35 lines (32 loc) · 982 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
Docker Compose for REMOTE Challenge Node (SSH)
Use this file on the server where challenges will run, IF separate from CTFd.
services:
cloudflared:
image: cloudflare/cloudflared:latest
restart: always
command: tunnel run
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN:?Set TUNNEL_TOKEN in .env file}
networks:
- default
depends_on:
- traefik
traefik:
image: traefik:v2.11
restart: always
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=ctfd-network" Must match network name below
- "--entrypoints.web.address=:80"
- "--api.insecure=false"
- "--log.level=INFO"
environment:
- DOCKER_API_VERSION=1.45 Force API compatibility
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- default
networks:
default:
name: ctfd-network Plugin settings must match this network name