version: '3' services: server: build: . ports: - 8080:8080 environment: COMMENTO_ORIGIN: http://192.168.0.172:8080 COMMENTO_PORT: 8080 COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable depends_on: - db networks: - db_network db: image: postgres environment: POSTGRES_DB: commento POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - 5432:5432 networks: - db_network volumes: - postgres_data_volume:/var/lib/postgres networks: db_network: volumes: postgres_data_volume: