Last active
September 27, 2019 07:29
-
-
Save derianpt/ad2c322a82ef422f4a5a0075c269e1bd to your computer and use it in GitHub Desktop.
medium docker part 2 final 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-client: | |
build: https://github.com/youraccount/web-client.git | |
ports: | |
- "4210::5000" | |
entrypoint: "npm run dev" | |
web-server: | |
build: https://github.com/youraccount/web-server.git | |
ports: | |
- "4200:5000" | |
# just keep server alive | |
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