Files

36 lines
918 B
YAML
Raw Permalink Normal View History

services:
gemas-notes:
container_name: gemas-notes_container
hostname: gemas-notes
restart: always
build:
context: .
args:
- PASSWORD=$PASSWORD_12000
volumes:
- ../receiver/flags/gemas-notes.txt:/flag.txt:ro
- ../utils/bashrc:/root/.bashrc:ro
- ../utils/preexec.sh:/root/.preexec.sh:ro
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "12022:22"
depends_on:
- database
- validation-service
database:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=why_my_random_string_password_doesnot_working
- MYSQL_DATABASE=gemasnotes
volumes:
- ./gemas-notes/src/db/init.sql:/docker-entrypoint-initdb.d/init.sql
validation-service:
build:
context: ./gemas-notes/src/validation-service
dockerfile: Dockerfile
depends_on:
- database
ports:
- "12000:80"