version: ‘3.8’ services: app: image: mraxel01/citronix:latest ports:
- “9090:8080”
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB}
SPRING_DATASOURCE_USERNAME:
- postgres
networks:
- app-network
restart: unless-stopped
postgres: image: ‘postgres:latest’ environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USERNAME}
ports:
- “5432:5432”
networks:
- app-network
pgadmin:
image: ‘dpage/pgadmin4:latest’
environment:
PGADMIN_DEFAULT_EMAIL:
- ‘5050:5050’
networks:
- app-network
networks: app-network: driver: bridge