2023-06-25 06:53:47 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
2023-06-25 07:03:46 +02:00
|
|
|
build: ./srcs/requirements/nginx
|
2023-06-25 06:53:47 +02:00
|
|
|
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
|
|
|
|
mariadb:
|
2023-06-25 07:03:46 +02:00
|
|
|
build: ./srcs/requirements/mariadb
|
2023-06-25 06:53:47 +02:00
|
|
|
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:
|
|
|
|
external: true
|