| | |
| | | POSTGRES_DB: jhs |
| | | healthcheck: |
| | | test: ["CMD-SHELL", "pg_isready -U postgres"] |
| | | interval: 5s |
| | | interval: 10s |
| | | timeout: 2s |
| | | retries: 3 |
| | | privileged: true |
| | |
| | | - ./nacos/logs/:/home/nacos/logs |
| | | - ./nacos/plugins:/home/nacos/plugins |
| | | #- ./nacos/conf/application.properties:/home/nacos/conf/application.properties |
| | | healthcheck: |
| | | test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"] |
| | | interval: 10s |
| | | timeout: 2s |
| | | retries: 3 |
| | | start_period: 10s |
| | | ports: |
| | | - 8080:8080 |
| | | - 8848:8848 |
| | |
| | | volumes: |
| | | - ./redis/redis.conf:/data/redis.conf |
| | | - ./redis/data:/data |
| | | healthcheck: |
| | | test: ["CMD", "redis-cli", "ping"] |
| | | interval: 10s |
| | | timeout: 2s |
| | | retries: 3 |
| | | #command: redis-server --requirepass Redis_s!E_6.2.6 |
| | | command: redis-server /data/redis.conf |
| | | networks: |
| | |
| | | - ./gateway:/app |
| | | environment: |
| | | TZ: Asia/Shanghai |
| | | entrypoint: /bin/sh -c "sleep 30 && java -jar /app/se-gateway.jar --spring.config.location=file:/app/" |
| | | #entrypoint: /bin/sh -c "sleep 30 && java -jar /app/se-gateway.jar --spring.config.location=file:/app/" |
| | | entrypoint: java -jar /app/se-gateway.jar --spring.config.location=file:/app/ |
| | | depends_on: |
| | | - redis |
| | | - nacos |
| | | redis: |
| | | condition: service_healthy |
| | | nacos: |
| | | condition: service_healthy |
| | | networks: |
| | | - network-jhs |
| | | # system |
| | |
| | | - ./system:/app |
| | | environment: |
| | | TZ: Asia/Shanghai |
| | | entrypoint: /bin/sh -c "sleep 30 && java -jar /app/se-system.jar --spring.config.location=file:/app/" |
| | | #entrypoint: /bin/sh -c "sleep 30 && java -jar /app/se-system.jar --spring.config.location=file:/app/" |
| | | entrypoint: java -jar /app/se-system.jar --spring.config.location=file:/app/ |
| | | depends_on: |
| | | - postgis |
| | | - nacos |
| | | - redis |
| | | postgis: |
| | | condition: service_healthy |
| | | redis: |
| | | condition: service_healthy |
| | | nacos: |
| | | condition: service_healthy |
| | | networks: |
| | | - network-jhs |
| | | # nginx |