martin/docker-compose.yml
2018-10-17 13:30:25 +03:00

31 lines
644 B
YAML

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