Skip to content

Instantly share code, notes, and snippets.

@mehmetron
Created July 23, 2021 08:42
Show Gist options
  • Save mehmetron/59010c1c80b06a0727d663392e761751 to your computer and use it in GitHub Desktop.
Save mehmetron/59010c1c80b06a0727d663392e761751 to your computer and use it in GitHub Desktop.
version: '3'
services:
frontend:
image: nextjs
restart: always
ports:
- "3000:3000"
depends_on:
- api
networks:
- web
api:
image: hello
restart: always
ports:
- "8080:8080"
depends_on:
- postgresql
networks:
- backend
- web
postgresql:
image: postgres
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=stuff
- POSTGRES_PASSWORD=stuff
- POSTGRES_DB=stuff
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- backend
volumes:
postgres-data:
driver: local
networks:
backend:
external: false
web:
external: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment