保誠-保戶業務員媒合平台
wayne
2022-02-18 ae4db5435180c44b37f521c463b17f2023ac1d8c
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
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.8'
services:
  pamapi-app:
    image: pamapi
    environment:
      - _JAVA_OPTIONS=-Xmx512m -Xms256m
      - SPRING_PROFILES_ACTIVE=prod,api-docs
      - MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
      - SPRING_DATASOURCE_URL=jdbc:postgresql://pamapi-postgresql:5432/pamapi
      - SPRING_LIQUIBASE_URL=jdbc:postgresql://pamapi-postgresql:5432/pamapi
      - JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
    # If you want to expose these ports outside your dev PC,
    # remove the "127.0.0.1:" prefix
    ports:
      - 127.0.0.1:8080:8080
  pamapi-postgresql:
    image: postgres:13.4
    # volumes:
    #   - ~/volumes/jhipster/pamapi/postgresql/:/var/lib/postgresql/data/
    environment:
      - POSTGRES_USER=pamapi
      - POSTGRES_PASSWORD=
      - POSTGRES_HOST_AUTH_METHOD=trust
    # If you want to expose these ports outside your dev PC,
    # remove the "127.0.0.1:" prefix
    ports:
      - 127.0.0.1:5432:5432