加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
guangyi.tan 提交于 2023-01-11 22:58 . 5.0.6
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/
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
networks:
my-network:
name: my-network
driver: bridge
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化