Skip to content

Instantly share code, notes, and snippets.

@derianpt
Last active September 27, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save derianpt/ad2c322a82ef422f4a5a0075c269e1bd to your computer and use it in GitHub Desktop.
Save derianpt/ad2c322a82ef422f4a5a0075c269e1bd to your computer and use it in GitHub Desktop.
medium docker part 2 final compose file
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