提交 9cd54016 编写于 作者: 小傅哥's avatar 小傅哥

feat:小傅哥 开发环境安装

上级 c08be792
# xfg-dev-tech-linux Java 简明教程 - 开发环境
- git: `sudo yum install git`
\ No newline at end of file
...@@ -2,15 +2,47 @@ version: '3.8' ...@@ -2,15 +2,47 @@ version: '3.8'
# 命令执行 docker-compose -f docker-compose-app.yml up -d # 命令执行 docker-compose -f docker-compose-app.yml up -d
services: services:
big-market-app: big-market-app:
image: xiaofuge/xfg-dev-tech-app:1.0 image: fuzhengwei/big-market-app:1.0
container_name: xfg-dev-tech-app container_name: big-market-app
restart: always restart: always
ports: ports:
- "8091:8091" - "8091:8091"
environment:
- TZ=PRC
- SERVER_PORT=8091
- APP_CONFIG_API_VERSION=v1
- APP_CONFIG_CROSS_ORIGIN=*
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=123456
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/big_market?serverTimezone=UTC&characterEncoding=utf8&autoReconnect=true&serverTimezone=Asia/Shanghai
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
- SPRING_HIKARI_POOL_NAME=Retail_HikariCP
- REDIS_SDK_CONFIG_HOST=redis
- REDIS_SDK_CONFIG_PORT=6379
volumes: volumes:
- ./log:/data/log - ./log:/data/log
networks: networks:
- my-network - my-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
big-market-front-app:
container_name: big-market-front-app
image: fuzhengwei/big-market-front-app:1.4
restart: always
networks:
- my-network
ports:
- 3000:3000
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
healthcheck:
test: [ "CMD", "wget", "--spider", "-q", "http://0.0.0.0:3000/" ]
interval: 1m
timeout: 10s
retries: 3
networks: networks:
my-network: my-network:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册