42 lines
959 B
YAML
42 lines
959 B
YAML
version: '3.1'
|
|
|
|
services:
|
|
# --- blogpost ---
|
|
blogpost:
|
|
container_name: blogpost_container
|
|
hostname: blogpost
|
|
restart: always
|
|
build:
|
|
context: blogpost
|
|
args:
|
|
- PASSWORD=$PASSWORD_10000
|
|
volumes:
|
|
- ../receiver/flags/blogpost.txt:/flag.txt:ro
|
|
- ../utils/bashrc:/root/.bashrc:ro
|
|
- ../utils/preexec.sh:/root/.preexec.sh:ro
|
|
ports:
|
|
- "10000:80"
|
|
- "10022:22"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
# --- blogpost ---
|
|
|
|
# --- cdn ---
|
|
cdn:
|
|
container_name: cdn_container
|
|
hostname: cdn
|
|
restart: always
|
|
build:
|
|
context: cdn
|
|
args:
|
|
- PASSWORD=$PASSWORD_11000
|
|
volumes:
|
|
- ../receiver/flags/cdn.txt:/flag.txt:ro
|
|
- ../utils/bashrc:/root/.bashrc:ro
|
|
- ../utils/preexec.sh:/root/.preexec.sh:ro
|
|
ports:
|
|
- "11000:80"
|
|
- "11022:22"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
# --- cdn --- |