Created
August 13, 2019 08:38
-
-
Save timabell/cbaaf10e1b293b4c898cfd78a13fc439 to your computer and use it in GitHub Desktop.
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
# 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