Skip to content

Instantly share code, notes, and snippets.

@timabell
Created August 13, 2019 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timabell/cbaaf10e1b293b4c898cfd78a13fc439 to your computer and use it in GitHub Desktop.
Save timabell/cbaaf10e1b293b4c898cfd78a13fc439 to your computer and use it in GitHub Desktop.
# multi-repo setup for DfE BAT Find
# https://github.com/webreactor/docker-project
version: "3.2"
volumes:
dbdata:
services:
scdb:
image: postgres:9.6-alpine
# To preserve data between runs of docker-compose, we mount a folder from the host machine.
volumes:
- dbdata:/var/lib/postgresql/data
ports:
- "5432:5432" # outside:inside
scapi:
build: .
ports:
- "5001:80" # outside:inside
depends_on:
- scdb
environment:
- DatabaseConnection__Server=scdb
labels:
project.git: https://github.com/DFE-Digital/search-and-compare-api
project.build: docker build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment