version: "3" services: mongodb: image: mongo:bionic container_name: mongodb ports: - "27017:27017" environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: password MONGO_INITDB_DATABASE: bot volumes: - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro - mongodb_data:/data/db bot-api: image: git.fai.st/fedi-image-bot/bot-api:v1.0.0 container_name: bot-api ports: - "8080:8080" depends_on: - mongodb environment: MONGODB_URI: "mongodb://mongodb:27017/bot" MONGODB_USER: "root" MONGODB_PASS: "password" JWTSECRET: "cooljwtsecret" bot: image: rust container_name: bot working_dir: /app entrypoint: ["cargo", "t"] depends_on: - bot-api volumes: - ./:/app:rw volumes: mongodb_data: