46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
nginx:
|
|
build: ./srcs/requirements/nginx
|
|
container_name: nginx
|
|
restart: always
|
|
volumes:
|
|
- ~/data/nginx/config:/etc/nginx
|
|
- ~/data/nginx/log/error.log:/var/log/error.log
|
|
- ~/data/nginx/log/access.log:/var/log/access.log
|
|
- /etc/letsencrypt/:/etc/letsencrypt/
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
networks:
|
|
wordpress:
|
|
ipv4_address: 172.20.30.10
|
|
mariadb:
|
|
build: ./srcs/requirements/mariadb
|
|
container_name: mariadb
|
|
restart: always
|
|
volumes:
|
|
- ~/data/mariadb/data:/var/lib/mysql
|
|
- ~/data/mariadb/config:/etc/mysql/conf.d
|
|
- ~/data/mariadb/logs:/var/log/mysql
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
wordpress:
|
|
ipv4_address: 172.20.30.20
|
|
wordpress:
|
|
build: ./srcs/requirements/wordpress
|
|
container_name: wordpress
|
|
restart: always
|
|
volumes:
|
|
- ~/data/wordpress:/var/www
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
wordpress:
|
|
ipv4_address: 172.20.30.30
|
|
|
|
networks:
|
|
wordpress:
|
|
external: true
|