# Build and run bsu-fantom with database in container # # If you are getting "port already in use" error, # try changing exposed ports, e.g 27017:27017 -> 27018:27017 version: '3' services: app: container_name: bsu-fantom restart: always build: . environment: - MONGODB_URI=mongodb://db:27017/bsu-fantom ports: - '3030:3030' links: - db db: container_name: mongo image: mongo ports: - '27017:27017'