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