Files
encrypt-decrypt-vuls/docker-compose.yml

74 lines
1.3 KiB
YAML
Raw Normal View History

2024-05-09 23:32:10 +08:00
version: '3'
services:
mysql:
2024-05-10 11:37:41 +08:00
image: mysql:5.7.26
2024-05-09 23:32:10 +08:00
environment:
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: "springboot-vue"
networks:
- mynetwork
volumes:
- ./library.sql:/docker-entrypoint-initdb.d/library.sql
redis:
image: redis:latest
networks:
- mynetwork
2024-05-12 22:58:54 +08:00
2024-05-12 23:10:34 +08:00
nacos:
image: nacos/nacos-server:2.0.2
networks:
- mynetwork
environment:
MODE: "standalone"
2024-05-10 10:32:59 +08:00
2024-05-09 23:32:10 +08:00
library:
2024-05-10 11:15:52 +08:00
image: library-service
2024-05-09 23:32:10 +08:00
environment:
MYSQL_HOST: mysql
REDIS_HOST: redis
NACOS_HOST: nacos
2024-05-10 23:05:13 +08:00
restart: on-failure
2024-05-09 23:32:10 +08:00
networks:
- mynetwork
2024-05-10 10:32:59 +08:00
ports:
2024-05-15 14:27:32 +08:00
- "9200:8082"
2024-05-10 10:32:59 +08:00
depends_on:
- nacos
- mysql
- redis
2024-05-09 23:32:10 +08:00
gateway:
2024-05-10 11:15:52 +08:00
image: gateway-service
2024-05-09 23:32:10 +08:00
environment:
MYSQL_HOST: mysql
REDIS_HOST: redis
NACOS_HOST: nacos
2024-05-10 23:05:13 +08:00
restart: on-failure
2024-05-12 23:32:25 +08:00
volumes:
2024-05-12 23:37:19 +08:00
- /tmp/log:/tmp
2024-05-09 23:32:10 +08:00
networks:
- mynetwork
ports:
2024-05-15 14:27:32 +08:00
- "9100:8081"
2024-05-10 10:32:59 +08:00
depends_on:
- nacos
- mysql
- redis
2024-05-15 14:34:41 +08:00
2024-05-15 14:27:32 +08:00
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
2024-05-15 16:37:52 +08:00
- ./vue/html1:/var/www/html
2024-05-15 16:59:06 +08:00
networks:
- mynetwork
2024-05-15 17:00:01 +08:00
depends_on:
- library
- gateway
2024-05-09 23:32:10 +08:00
networks:
mynetwork: