1 Star 0 Fork 987

张辉 / sg-exam

forked from GuYiTan / sg-exam 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
GuYiTan 提交于 2023-08-28 22:03 . 启动脚本、docker-compose.yml 优化
version: '2.1'
services:
sg-next-app:
build: frontend
image: ${SG_EXAM_REGISTRY}/sg-next-app:${SG_EXAM_VERSION}
networks:
- my-network
ports:
- "81:80"
- "443:443"
volumes:
- ./config-repo/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config-repo/nginx/cert:/etc/nginx/cert
sg-user-service:
build: sg-user-service
image: ${SG_EXAM_REGISTRY}/sg-user-service:${SG_EXAM_VERSION}
mem_limit: 8g
networks:
- my-network
env_file: config-repo/env/sg-user-service.env
ports:
- "9183:80"
- "4004:4004"
volumes:
- ./config-repo/:/config-repo/
- ./logs/:/logs/
redis:
image: redis:latest
container_name: redis
restart: always
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
volumes:
- ./data/redis-data:/data
- ./config-repo/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- my-network
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- "3000:3000"
volumes:
- ./data/grafana:/var/lib/grafana
networks:
- my-network
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
restart: always
volumes:
- ./config-repo/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- my-network
kkFileView:
image: keking/kkfileview:4.1.0
container_name: kkFileView
hostname: kkFileView
restart: always
ports:
- "8012:8012"
networks:
- my-network
networks:
my-network:
name: my-network
driver: bridge
Java
1
https://gitee.com/zhang_hui_99977/sg-exam.git
git@gitee.com:zhang_hui_99977/sg-exam.git
zhang_hui_99977
sg-exam
sg-exam
master

搜索帮助