--- name: cosmostat services: cosmostat-dash: build: context: . dockerfile: Dockerfile container_name: cosmostat-dash image: cosmostat-dash:latest restart: always network_mode: bridge ports: - "8069:8069" volumes: # make sure to keep the database file - "./database:/opt/Fitness/api/database" ...