2023-06-25 06:53:47 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
2023-08-09 01:02:09 +02:00
|
|
|
build: ./requirements/nginx
|
2023-08-09 22:52:57 +02:00
|
|
|
hostname: djonker.42.fr
|
|
|
|
init: true
|
2023-06-25 06:53:47 +02:00
|
|
|
container_name: nginx
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-10 06:35:23 +02:00
|
|
|
- ~/data/wordpress:/var/www/wordpress
|
2023-06-25 06:53:47 +02:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
2023-06-25 09:05:00 +02:00
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.10
|
2023-06-25 06:53:47 +02:00
|
|
|
mariadb:
|
2023-08-09 01:02:09 +02:00
|
|
|
build: ./requirements/mariadb
|
2023-08-10 06:35:23 +02:00
|
|
|
environment:
|
|
|
|
- WORDPRESSDATABASE=${WORDPRESSDATABASE}
|
|
|
|
- WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
|
|
|
|
- WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
|
2023-08-09 22:52:57 +02:00
|
|
|
init: true
|
2023-06-25 06:53:47 +02:00
|
|
|
container_name: mariadb
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-10 06:35:23 +02:00
|
|
|
- ~/data/mariadb/data:/var/lib/mysql
|
|
|
|
- ~/data/mariadb/config:/etc/mysql/conf.d
|
|
|
|
- ~/data/mariadb/logs:/var/log/mysql
|
2023-06-25 09:05:00 +02:00
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.20
|
|
|
|
wordpress:
|
2023-08-09 01:02:09 +02:00
|
|
|
build: ./requirements/wordpress
|
2023-06-25 09:05:00 +02:00
|
|
|
container_name: wordpress
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-10 06:35:23 +02:00
|
|
|
- ~/data/wordpress:/var/www/wordpress
|
2023-06-25 09:05:00 +02:00
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.30
|
2023-06-25 06:53:47 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
external: true
|