version: "2.1" services: 12heroes_app: build: context: ./ args : - VUE_APP_SERVER_HOST=${VUE_APP_SERVER_HOST} - VUE_APP_SERVER_PORT=${VUE_APP_SERVER_PORT} image: 12heroes_app container_name: 12heroes_app environment: - VUE_APP_PORT ports: - "${VUE_APP_PORT}:${VUE_APP_PORT}" restart: always 12heroes_server: build: context: ./server/ image: 12heroes_server container_name: 12heroes_server network_mode: host environment: - DB - DB_NAME - DB_PORT - DB_SOCKET - DB_USER - DB_PASS - VUE_APP_SERVER_PORT ports: - "${VUE_APP_SERVER_PORT}:${VUE_APP_SERVER_PORT}" restart: always