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"
  app:
    hostname: srv1prod
    build:
      context: ..
      dockerfile: docker/Dockerfile
    container_name: "ji-ctf-dockerized"
    environment:
      MYSQL_ROOT_PASSWORD: 39gknzLD
      MYSQL_DATABASE: app
    ports:
      - "22:22"
      - "31337:31337"
    depends_on:
      - db