version: '3.2'

services:
  osm:
    image: overv/openstreetmap-tile-server:latest
    container_name: osm
    volumes:
      - openstreetmap-data:/var/lib/postgresql/12/main
#    environment:
#      - ALLOW_CORS=enabled
    ports:
      - 28080:80
    restart: always
    command: "run"
    networks:
      - proxy

volumes:
  openstreetmap-data:
    external: true
networks:
  proxy:
    external: true