ctf-chal-ji/docker/docker-compose.yml
david 6c15c4cb33 * hardened the web app
* Disabled bash history for agent and apache users
2025-10-16 21:30:00 +02:00

41 lines
753 B
YAML

services:
db:
image: mysql:8.1
environment:
MYSQL_ROOT_PASSWORD: 39gknzLD
MYSQL_DATABASE: app
volumes:
- ../config/base.sql:/docker-entrypoint-initdb.d/base.sql:ro
ports:
- "3306:3306"
networks:
- backend
web-app:
hostname: srv1prod
build:
context: ..
dockerfile: docker/Dockerfile
container_name: "ji-ctf-dockerized"
environment:
MYSQL_ROOT_PASSWORD: 39gknzLD
MYSQL_DATABASE: app
ports:
- "22:22"
- "8080:8080"
depends_on:
- db
networks:
- backend
cap_add:
- NET_BIND_SERVICE
pids_limit: 256
mem_limit: 256m
cpus: 0.5
restart: always
networks:
backend:
driver: bridge
internal: false