diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3e0c408 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +version: "3" + +services: + goff-db: + image: postgres + ports: + - "5432:5432" + volumes: + - "${PWD}/postgres.conf:/etc/postgresql/postgresql.conf" + - "goff-db:/var/lib/postgresql/data:rw" + env_file: ${PWD}/.env + + goff: + build: + context: . + dockerfile: "${PWD}/Dockerfile" + env_file: ${PWD}/.env + depends_on: + - goff-db + environment: + - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} + links: + - goff-db:goff.db + +volumes: + goff-db: + external: true \ No newline at end of file