services: labkey-db: build: context: ./db args: USER_ID: ${USER_ID} GROUP_ID: ${GROUP_ID} volumes: - ${POSTGRES_DIR}:/var/lib/postgresql/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=$PGPASS - POSTGRES_DB=labkey ports: - 5432 labkey-web: depends_on: - labkey-db build: context: ./web args: USER_ID: ${USER_ID} GROUP_ID: ${GROUP_ID} JAVA_FLAGS: ${J_FLAGS} volumes: - ${LABKEY_HOME}:/home/labkey ports: - 8081:8080 - 8444:8443 networks: default: name: labkey_network external: true