version: "2" services: copilot-backend: image: ghcr.io/socfortress/copilot-backend:latest # Expose the Ports for Graylog Alerting and Docs ports: - "5000:5000" volumes: - ./data/copilot-backend-data/logs:/opt/logs # Mount the copilot.db file to persist the database - ./data/data:/opt/copilot/backend/data env_file: .env depends_on: - copilot-mysql copilot-frontend: image: ghcr.io/socfortress/copilot-frontend:latest environment: - SERVER_HOST=${SERVER_HOST:-localhost} # Set the domain name of your server ports: - "80:80" - "443:443" copilot-mysql: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_DATABASE: copilot MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} ports: - "3306:3306" volumes: - mysql-data:/var/lib/mysql volumes: mysql-data: networks: default: driver: bridge # In case you need to set the MTU #driver_opts: # com.docker.network.driver.mtu: "1450"