parent
a17e1de4d0
commit
b055336432
@ -1,27 +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-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
|
||||
# depends_on:
|
||||
# - goff-db
|
||||
environment:
|
||||
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?sslmode=disable
|
||||
links:
|
||||
- goff-db:goff.db
|
||||
# links:
|
||||
# - goff-db:goff.db
|
||||
|
||||
volumes:
|
||||
goff-db:
|
||||
external: true
|
||||
#volumes:
|
||||
# goff-db:
|
||||
# external: true
|
||||
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/local/bin/docker-compose build || exit
|
||||
/usr/local/bin/docker-compose up
|
||||
Loading…
Reference in new issue