mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
31 lines
644 B
YAML
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
|