2018-10-24 14:00:45 +03:00
|
|
|
version: "3.7"
|
2018-10-08 14:03:04 +03:00
|
|
|
|
|
|
|
services:
|
2018-10-24 14:00:45 +03:00
|
|
|
frontend:
|
2018-10-11 17:28:20 +03:00
|
|
|
build:
|
2018-10-24 14:00:45 +03:00
|
|
|
context: ./frontend
|
|
|
|
dockerfile: 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-24 14:00:45 +03:00
|
|
|
|
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
|
2018-10-24 14:00:45 +03:00
|
|
|
|
2018-10-08 14:03:04 +03:00
|
|
|
db:
|
2018-10-15 19:39:45 +03:00
|
|
|
build:
|
2018-10-24 14:00:45 +03:00
|
|
|
context: ./db
|
|
|
|
dockerfile: Dockerfile
|
2018-10-08 14:03:04 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=db
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
volumes:
|
2018-10-24 14:00:45 +03:00
|
|
|
- ./db/db:/var/lib/postgresql/data
|
|
|
|
- ./db/initdb:/docker-entrypoint-initdb.d
|