version: '3.9' services: frontend: image: fascinated/paste-frontend:latest restart: always environment: NEXT_PUBLIC_API_ENDPOINT: http://localhost:3005 ports: - "3000:80" backend: image: fascinated/paste-backend:latest restart: always volumes: - ./application.yml:/home/container/application.yml ports: - "3005:3000" mongo: image: mongo:latest restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: root ports: - "27017:27017" volumes: - ./data:/data/db