--- services: db: image: docker.io/postgres:15 restart: unless-stopped environment: - POSTGRES_DB - POSTGRES_USER - POSTGRES_PASSWORD volumes: - db:/var/lib/postgresql/data/ synapse: image: "$IMAGEAPP" restart: unless-stopped ports: - "8080:8008" - "8448:8448" volumes: - synapse_config:/config/ - synapse_data:/data/ volumes: db: {} synapse_config: {} synapse_data: {}