使用docker-compose建立xoops網站
version: '2'
services:
mariadb:
container_name: xoopsDB
image: mariadb:10
restart: always
environment:
- MYSQL_ROOT_PASSWORD=superuser
- MYSQL_PASSWORD=superuser
command: mysqld --sql_mode=""
networks:
vpcbr:
ipv4_address: 10.5.0.3
volumes:
- /mnt/raid/web/db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
xoops:
container_name: xoops
image: kawsing/xoops
ports:
- "80:80"
- "433:433"
networks:
vpcbr:
ipv4_address: 10.5.0.2
volumes:
- /mnt/raid/web/xoops/www:/var/www
- /etc/localtime:/etc/localtime:ro
links:
- mariadb
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/24
gateway: 10.5.0.1



Last updated