version: "3.7" services: logger: container_name: "logger" hostname: "logger" build: context: ../logger dockerfile: dockerfile image: "logger" command: ["java","-jar","/app/logger/logger-0.1.jar"] volumes: - teh-logs:${LOGGER_DATA} ports: - 85:8585 restart: unless-stopped networks: - teh-net volumes: teh-logs: external: true networks: teh-net: name: teh-net external: true driver: bridge