Created
July 23, 2021 08:42
-
-
Save mehmetron/59010c1c80b06a0727d663392e761751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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