services: # Go application service go-app: build: context: go/. args: - GO111MODULE=on ports: - "10.0.1.3:8096:8080" depends_on: - db environment: - DB_HOST=10.2.0.30 - DB_PORT=3306 - DB_USER=root - DB_PASSWORD=owntracks - DB_NAME=owntracks volumes: - /etc/localtime:/etc/localtime:ro restart: always networks: default: monitoring: ipv4_address: 10.2.0.29 db: image: mariadb:11 volumes: - ./mysql-data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: owntracks MYSQL_DATABASE: owntracks restart: always networks: default: monitoring: ipv4_address: 10.2.0.30 networks: monitoring: external: true