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 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: external: true