martin/docker-compose.yml
2018-10-25 01:56:58 +03:00

31 lines
584 B
YAML

version: "3.7"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- tiles
tiles:
image: urbica/martin
restart: unless-stopped
environment:
- DATABASE_URL=postgres://postgres@db/db
depends_on:
- db
db:
build:
context: ./db
dockerfile: Dockerfile
restart: unless-stopped
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
volumes:
- ./db/db:/var/lib/postgresql/data
- ./db/initdb:/docker-entrypoint-initdb.d