Last active
October 10, 2018 09:02
-
-
Save derianpt/c9fa2b8baf20c1282715a549fc86e8ec to your computer and use it in GitHub Desktop.
compose file
This file contains 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: | |
web-server: | |
build: . | |
depends_on: | |
- database | |
ports: | |
- "4200:5000" | |
entrypoint: "tail -f /dev/null" | |
database: | |
image: "postgres:alpine" | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_DB: mydb | |
ports: | |
- "4201:5432" | |
volumes: | |
- server_db:/var/lib/postgresql/data | |
volumes: | |
server_db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment