Skip to content

Instantly share code, notes, and snippets.

@sagar290
Created February 23, 2024 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagar290/e9ee345776fc2636e23f58668eb241d7 to your computer and use it in GitHub Desktop.
Save sagar290/e9ee345776fc2636e23f58668eb241d7 to your computer and use it in GitHub Desktop.
api-gateway-docker-compose.yml
version: '3.8'
services:
app:
image: nginx
volumes:
- "./docker/nginx/sites/:/etc/nginx/conf.d"
ports:
- "80:80"
networks:
- gateway
auth:
build:
context: ./auth
dockerfile: DockerFile
networks:
- gateway
services1:
build:
context: ./service1
dockerfile: ./DockerFile
networks:
- gateway
services2:
build:
context: ./service2
dockerfile: ./DockerFile
networks:
- gateway
networks:
gateway: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment