Golang Stack
version: "3.8"
services:
web:
container_name: go-app
build: ./
ports:
- "5000:5000"
environment:
DD_DB_HOST: db
command: /server
depends_on:
- db
db:
container_name: go-app-db
image: postgres:14.1-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: goland
POSTGRES_PASSWORD: goland
POSTGRES_DB: goland
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
sidecar:
image: industryapps.azurecr.io/service-discovery-sidecar
container_name: { my-apps-name-sidecar }
restart: always
environment:
NODE_ENV: production
DEPLOYMENT_MODE: public
EUREKA_INSTANCE_IP: { IP }
EUREKA_INSTANCE_PORT: { PORT }
EUREKA_INSTANCE_APP: { app-code }
EUREKA_INSTANCE_HOST_NAME: { my-app-domain }/
EUREKA_INSTANCE_HOME_PAGE_URL: https://<your_domain>/{APPCODE}
EUREKA_HOST: servicediscovery.uat.industryapps.net
EUREKA_PORT: 443
networks:
default:
driver: bridgeLast updated