2023-06-25 06:53:47 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
image: ./srcs/requirements/nginx/Dockerfile
|
|
|
|
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:
|
|
|
|
image: ./srcs/requirements/mariadb/Dockerfile
|
|
|
|
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
|