tissue/docker-compose.yml

33 lines
487 B
YAML
Raw Normal View History

2018-06-05 23:45:29 +09:00
version: "3"
services:
web:
build: .
env_file:
- .env
2018-06-05 23:45:29 +09:00
volumes:
- .:/var/www/html
networks:
- backend
ports:
- 4545:80
restart: always
depends_on:
- db
db:
image: postgres:10-alpine
environment:
POSTGRES_DB: tissue
POSTGRES_USER: tissue
POSTGRES_PASSWORD: tissue
volumes:
- db:/var/lib/postgresql/data
networks:
- backend
restart: always
networks:
backend:
volumes:
db: