# Note: # On Docker Desktop 3.4.0, the ports cannot be exposed by `docker stack`. # Please run it with `docker-compose`. # version: "3" services: db: image: postgres:12 restart: always volumes: - postgres:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=password - POSTGRES_USER=longtan ports: - "5432:5432" volumes: postgres: