Use Traefik to run the containers
We already prepare two URL for the API server and client website. And my docker-compose.yml file as follow. The two containers can run but cannot connect to the database, because the link is point to localhost (should be 35.221.232.153). Is there any scrip I should add in the docker file?
version: '3'
services:
ggce-server:
image: dockerhub.croptrust.org/grin-global/grin-global-server:2021.8
restart: always
networks:
- web
logging:
options:
max-size: "100k"
max-file: "3"
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:gsercer.worldveg.org"
- "traefik.basic.port=8088"
- "traefik.basic.protocol=http"
ggce-ui:
image: dockerhub.croptrust.org/grin-global/grin-global-ui/gg-ce-web:2021.8
restart: always
networks:
- web
logging:
options:
max-size: "100k"
max-file: "3"
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:gclient.worldveg.org"
- "traefik.basic.port=8088"
- "traefik.basic.protocol=http"
networks:
web: