12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- version: '3'
- networks:
- default:
- driver: bridge
- services:
- nginx:
- container_name: ${ABBREVIATION}-nginx
- image: docker.io/nginx:1.23.0
- restart: always
- depends_on:
- - "php"
- volumes:
- - ./www:/www
- - ./config/nginx/conf.d:/etc/nginx/conf.d
- - ./logs/nginx/logs:/logs
- networks:
- - default
- ports:
- - "${NUMBER}080:80"
- php:
- container_name: ${ABBREVIATION}-php-fpm
- image: likeshop/php:8.0.22-fpm
- restart: always
- working_dir: /www/server
- volumes:
- - ./www:/www
- - ./config/php/php.ini:/usr/local/etc/php/php.ini
- networks:
- - default
- mysql:
- container_name: ${ABBREVIATION}-mysql
- image: mysql:8.0.34
- restart: always
- ports:
- - "${NUMBER}3306:3306"
- volumes:
- - ./data/mysql/lib:/var/lib/mysql
- - ./config/mysql/mysqld.cnf:/etc/mysql/my.cnf
- environment:
- MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
- TZ: "Asia/Shanghai"
- networks:
- - default
- redis:
- container_name: ${ABBREVIATION}-redis
- image: docker.io/redis:6.2.7
- restart: always
- volumes:
- - ./data/redis:/data
- networks:
- - default
- ports:
- - "${NUMBER}6379:6379"
- node:
- container_name: ${ABBREVIATION}-node
- image: node:16.16.0
- restart: always
- volumes:
- - ./www:/www
- networks:
- - default
- working_dir: /www
|