server: image: nginx:latest ports: - "80:80" volumes: - ./config/nginx:/etc/nginx/conf.d volumes_from: - web sapldb: image: postgres environment: POSTGRES_PASSWORD: sapl POSTGRES_USER: sapl POSTGRES_DB: sapl PGDATA : /var/lib/postgresql/data/ volumes: - ./postgres-data/data/:/var/lib/postgresql/data/ ports: - "5532:5432" web: build: . volumes: - .:/sapl links: - sapldb