Skip to content

Instantly share code, notes, and snippets.

@made2591
Last active March 5, 2019 23:44
Show Gist options
  • Save made2591/a53db169ba6f52c24f20d76714e2e37b to your computer and use it in GitHub Desktop.
Save made2591/a53db169ba6f52c24f20d76714e2e37b to your computer and use it in GitHub Desktop.
A docker compose to start up a proxy and a simple web server for illustrative purposes
version: "3"
services:
proxy:
container_name: proxy
restart: always
image: debian:jessie
privileged: true
ports:
- "80:80"
networks:
- frontend
- backend
tty: true
server:
container_name: server
restart: always
image: yeasy/simple-web:latest
privileged: true
networks:
- backend
tty: true
networks:
frontend:
driver: bridge
backend:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment