Skip to content

Instantly share code, notes, and snippets.

@anujdevopslearn
Created November 9, 2023 14:24
Show Gist options
  • Save anujdevopslearn/caf69f40d48775eed3f50b34d48f12be to your computer and use it in GitHub Desktop.
Save anujdevopslearn/caf69f40d48775eed3f50b34d48f12be to your computer and use it in GitHub Desktop.
version: '3'
services:
distro:
image: alpine
container_name: Alpine_Distro
restart: always
entrypoint: tail -f /dev/null
database:
image: postgres:latest
container_name: postgres_db
volumes:
- dbdata:/var/lib/postgresql
ports:
- "5432:5432"
web:
image: nginx:latest
container_name: nginx
ports:
- "8080:80"
environment:
- NGINX_HOST=example.com
- NGINX_port=80
volumes:
dbdata: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment