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