Skip to content

Instantly share code, notes, and snippets.

@Daniel1984
Created April 22, 2020 16:56
Show Gist options
  • Save Daniel1984/2fa1e328ff229d6a0eddbe67f565bffd to your computer and use it in GitHub Desktop.
Save Daniel1984/2fa1e328ff229d6a0eddbe67f565bffd to your computer and use it in GitHub Desktop.
version: "3.7"
volumes:
boilerplatevolume:
name: boilerplate-volume
networks:
boilerplatenetwork:
name: boilerplate-network
services:
pg:
image: postgres:12.0
restart: on-failure
env_file:
- .env
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
volumes:
- boilerplatevolume:/var/lib/postgresql/data
- ./db/scripts:/docker-entrypoint-initdb.d/
networks:
- boilerplatenetwork
boilerplate_api:
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
- pg
volumes:
- ./:/app
ports:
- 7777:7777
networks:
- boilerplatenetwork
env_file:
- .env
entrypoint: ["/bin/bash", "./scripts/entrypoint.dev.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment