2018-10-08 14:03:04 +03:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
2018-10-11 17:28:20 +03:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: front.Dockerfile
|
2018-10-08 14:03:04 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
2018-10-17 13:30:25 +03:00
|
|
|
- tiles
|
2018-10-08 14:03:04 +03:00
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
2018-10-17 13:30:25 +03:00
|
|
|
tiles:
|
2018-10-08 14:03:04 +03:00
|
|
|
image: urbica/martin
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2018-10-17 13:30:25 +03:00
|
|
|
- DATABASE_URL=postgres://postgres@db/db
|
2018-10-08 14:03:04 +03:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
db:
|
2018-10-15 19:39:45 +03:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: db.Dockerfile
|
2018-10-08 14:03:04 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=db
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
volumes:
|
|
|
|
- ./db:/var/lib/postgresql/data
|
2018-10-15 19:39:45 +03:00
|
|
|
- ./docker-entrypoint-initdb:/docker-entrypoint-initdb.d
|