12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- version : '3.8'
- services:
- ruoyi-mysql:
- container_name: ruoyi-mysql
- image: mysql:5.7
- build:
- context: ./mysql
- ports:
- - "3306:3306"
- volumes:
- - ./mysql/conf:/etc/mysql/conf.d
- - ./mysql/logs:/logs
- - ./mysql/data:/var/lib/mysql
- command: [
- 'mysqld',
- '--innodb-buffer-pool-size=80M',
- '--character-set-server=utf8mb4',
- '--collation-server=utf8mb4_unicode_ci',
- '--default-time-zone=+8:00',
- '--lower-case-table-names=1'
- ]
- environment:
- MYSQL_DATABASE: 'ry-cloud'
- MYSQL_ROOT_PASSWORD: password
- ruoyi-redis:
- container_name: ruoyi-redis
- image: redis
- build:
- context: ./redis
- ports:
- - "6379:6379"
- volumes:
- - ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
- - ./redis/data:/data
- command: redis-server /home/ruoyi/redis/redis.conf
- ruoyi-nginx:
- container_name: ruoyi-nginx
- image: nginx
- build:
- context: ./nginx
- ports:
- - "80:80"
- volumes:
- - ./nginx/html/dist:/home/ruoyi/projects/ruoyi-ui
- - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- - ./nginx/logs:/var/log/nginx
- - ./nginx/conf.d:/etc/nginx/conf.d
- depends_on:
- - ruoyi-gateway
- links:
- - ruoyi-gateway
- ruoyi-admin:
- container_name: ruoyi-admin
- build:
- context: ./ruoyi/admin
- dockerfile: dockerfile
- ports:
- - "8080:8080"
- depends_on:
- - ruoyi-redis
- - ruoyi-mysql
- links:
- - ruoyi-redis
- - ruoyi-mysql
|