borders/docker-compose.yaml
Alexey Zakharenkov c31a2caf0a SQL formatting
2020-10-23 01:13:45 +03:00

34 lines
752 B
YAML

version: "3"
services:
web:
build:
context: ./web
dockerfile: Dockerfile.web
container_name: web
restart: always
depends_on:
- db
links:
- "db:dbhost"
ports:
- "8081:80"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
db:
build:
context: ./db
dockerfile: Dockerfile.db
args:
PLANET_URL: https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf
PLANET_URL_small: http://download.geofabrik.de/africa/eritrea-latest.osm.pbf
container_name: db
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: password
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "55432:5432"