version: "3.8" services: bot: image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:latest volumes: - ./bot:/app/ bot-front: image: git.fai.st/fedi-image-bot/bot-image-moderation-fe:latest ports: - "8081:8081" environment: - BACKEND_URL=http://bot-api/ bot-api: image: git.fai.st/fedi-image-bot/bot-api:latest ports: - "8080:8080" # Map container port to host port depends_on: - mongodb environment: MONGODB_URI: "mongodb://mongodb:27017/bot" MONGODB_USER: "admin" MONGODB_PASS: "password" JWTSECRET: "cooljwtsecret" mongodb: image: mongo:bionic container_name: mongodb ports: - "27017:27017" volumes: - mongodb_data:/data/db environment: MONGO_INITDB_ROOT_USERNAME: admin MONGO_INITDB_ROOT_PASSWORD: password MONGO_INITDB_DATABASE: bot volumes: mongodb_data: