core/docker-compose.yml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
services: psql: image: postgres:latest environment: POSTGRES_DB: ${DB_DATABASE} POSTGRES_USER: ${DB_USERNAME} POSTGRES_PASSWORD: ${DB_PASSWORD} ports: - "${DB_PORT}:5432" volumes: - psql_volume:/var/lib/postgresql/data networks: - identity_network app: build: . ports: - "8080:8080" environment: PORT: ${PORT} APP_ENV: ${APP_ENV} DB_HOST: psql DB_PORT: ${DB_PORT} DB_DATABASE: ${DB_DATABASE} DB_USERNAME: ${DB_USERNAME} DB_PASSWORD: ${DB_PASSWORD} DB_SCHEMA: ${DB_SCHEMA} networks: - identity_network depends_on: - psql volumes: psql_volume: networks: identity_network: driver: bridge |