services: postgres: image: postgres:12-alpine environment: POSTGRES_USER: superx POSTGRES_PASSWORD: superx volumes: - postgres_data:/var/lib/postgresql/data ports: - "5432:5432" app: build: app/ environment: PGDATABASE: superx PGUSER: superx PGPASSWORD: superx PGHOST: postgres DB_HOST: postgres DB_USER: superx DB_PASS: superx DB_NAME: superx LANG: de_DE.UTF-8 LC_ALL: de_DE.UTF-8 volumes: - /home/alex/git:/home/superx/git - costage_unl:/home/superx/db/module/costage/rohdaten/unl ports: - "8080:8080" depends_on: - postgres command: > bash -c "while !