BladeX/script/docker/docker-compose.yml

173 lines
3.4 KiB
YAML
Raw Permalink Normal View History

2019-01-30 17:06:23 +08:00
version: '3'
services:
2019-04-01 22:56:46 +08:00
nacos:
image: nacos/nacos-server:2.0.2
2019-04-01 22:56:46 +08:00
hostname: "nacos-standalone"
environment:
- MODE=standalone
volumes:
- /docker/nacos/standalone-logs/:/home/nacos/logs
- /docker/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- 8848:8848
- 9848:9848
- 9849:9849
2019-04-01 22:56:46 +08:00
networks:
blade_net:
ipv4_address: 172.30.0.48
sentinel:
image: bladex/sentinel-dashboard:1.8.0
2019-04-01 22:56:46 +08:00
hostname: "sentinel"
ports:
- 8858:8858
restart: on-failure
networks:
blade_net:
ipv4_address: 172.30.0.58
2019-01-30 17:06:23 +08:00
2019-02-13 17:11:47 +08:00
blade-nginx:
2019-01-30 17:06:23 +08:00
image: nginx:stable-alpine-perl
2019-03-09 20:07:46 +08:00
hostname: "blade-nginx"
2019-01-30 17:06:23 +08:00
ports:
- 88:88
volumes:
2019-06-17 00:29:28 +08:00
- /docker/nginx/api/nginx.conf:/etc/nginx/nginx.conf
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
- blade_net
2019-03-09 20:07:46 +08:00
web-nginx:
image: nginx:stable-alpine-perl
hostname: "web-nginx"
ports:
- 8000:8000
volumes:
- /docker/nginx/web/html:/usr/share/nginx/html
- /docker/nginx/web/nginx.conf:/etc/nginx/nginx.conf
privileged: true
restart: always
networks:
- blade_net
2019-01-30 17:06:23 +08:00
blade-redis:
image: redis:5.0.2-alpine
hostname: "blade-redis"
ports:
2019-04-01 22:56:46 +08:00
- 3379:6379
2019-01-30 17:06:23 +08:00
volumes:
- /docker/redis/data:/data
command: "redis-server --appendonly yes"
privileged: true
restart: always
networks:
- blade_net
blade-admin:
image: "${REGISTER}/blade-admin:${TAG}"
2019-01-30 17:06:23 +08:00
ports:
- 7002:7002
privileged: true
restart: always
networks:
- blade_net
blade-swagger:
image: "${REGISTER}/blade-swagger:${TAG}"
ports:
- 18000:18000
privileged: true
restart: always
networks:
- blade_net
2019-01-30 17:06:23 +08:00
blade-gateway1:
image: "${REGISTER}/blade-gateway:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
blade_net:
ipv4_address: 172.30.0.81
blade-gateway2:
image: "${REGISTER}/blade-gateway:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
blade_net:
ipv4_address: 172.30.0.82
2019-04-01 22:56:46 +08:00
blade-auth1:
image: "${REGISTER}/blade-auth:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
blade_net:
2019-04-01 22:56:46 +08:00
ipv4_address: 172.30.0.91
2019-01-30 17:06:23 +08:00
2019-04-01 22:56:46 +08:00
blade-auth2:
image: "${REGISTER}/blade-auth:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
2019-04-01 22:56:46 +08:00
blade_net:
ipv4_address: 172.30.0.92
2019-01-30 17:06:23 +08:00
blade-report:
image: "${REGISTER}/blade-report:${TAG}"
privileged: true
restart: always
networks:
blade_net:
ipv4_address: 172.30.0.98
2019-01-30 17:06:23 +08:00
blade-log:
image: "${REGISTER}/blade-log:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
- blade_net
blade-desk:
image: "${REGISTER}/blade-desk:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
- blade_net
blade-user:
image: "${REGISTER}/blade-user:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
- blade_net
blade-system:
image: "${REGISTER}/blade-system:${TAG}"
2019-01-30 17:06:23 +08:00
privileged: true
restart: always
networks:
- blade_net
2019-06-17 00:29:28 +08:00
blade-resource:
image: "${REGISTER}/blade-resource:${TAG}"
2019-06-17 00:29:28 +08:00
privileged: true
restart: always
networks:
- blade_net
blade-develop:
image: "${REGISTER}/blade-develop:${TAG}"
privileged: true
restart: always
networks:
- blade_net
2019-01-30 17:06:23 +08:00
networks:
blade_net:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16