Update compose files

This commit is contained in:
John Lees-Miller
2020-05-30 10:37:38 +01:00
parent 840940f3a5
commit 9de44dd735
3 changed files with 33 additions and 21 deletions

View File

@ -1,3 +1,6 @@
web: version: '3.8'
services:
web:
env_file: env_file:
- development.env.template - development.env.template

View File

@ -1,6 +1,12 @@
web: version: '3.8'
services:
web:
volumes: volumes:
- .:/home/app/wedding - .:/home/app/wedding
- /usr/local/bundle - web_bundle:/usr/local/bundle
env_file: env_file:
- development.env - development.env
volumes:
web_bundle:

View File

@ -1,11 +1,14 @@
db: version: '3.8'
services:
db:
image: postgres:10 image: postgres:10
environment: environment:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
ports: ports:
- '5432:5432' - '5432:5432'
web: web:
build: . build: .
ports: ports:
- '3000:3000' - '3000:3000'