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
|
2023-06-25 06:53:47 +02:00
|
|
|
container_name: nginx
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-10 08:16:08 +02:00
|
|
|
- /home/djonker/data/wordpress:/var/www/wordpress
|
2023-08-13 23:02:18 +02:00
|
|
|
- /home/djonker/data/adminer:/var/www/adminer
|
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 08:16:08 +02:00
|
|
|
- /home/djonker/data/mariadb/data:/var/lib/mysql
|
|
|
|
- /home/djonker/data/mariadb/config:/etc/mysql/conf.d
|
|
|
|
- /home/djonker/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-08-14 03:00:42 +02:00
|
|
|
environment:
|
|
|
|
- WORDPRESSDATABASE=${WORDPRESSDATABASE}
|
|
|
|
- WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
|
|
|
|
- WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
|
|
|
|
- WPADMINUSER=${WPADMINUSER}
|
|
|
|
- WPADMINPASSWD=${WPADMINPASSWD}
|
|
|
|
- WPADMINEMAIL=${WPADMINEMAIL}
|
|
|
|
- WPUSERUSER=${WPUSERUSER}
|
|
|
|
- WPUSERPASSWD=${WPUSERPASSWD}
|
|
|
|
- WPUSEREMAIL=${WPUSEREMAIL}
|
|
|
|
init: true
|
2023-06-25 09:05:00 +02:00
|
|
|
container_name: wordpress
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-08-10 08:16:08 +02:00
|
|
|
- /home/djonker/data/wordpress:/var/www/wordpress
|
2023-06-25 09:05:00 +02:00
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.30
|
2023-08-10 10:32:03 +02:00
|
|
|
ftp:
|
|
|
|
build: ./requirements/ftp
|
|
|
|
container_name: ftp
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /home/djonker/data/wordpress:/home/admin
|
|
|
|
ports:
|
|
|
|
- 21:21
|
|
|
|
- 21000:21000
|
2023-08-13 23:02:18 +02:00
|
|
|
adminer:
|
|
|
|
build: ./requirements/adminer
|
|
|
|
container_name: adminer
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /home/djonker/data/adminer:/var/www/adminer
|
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.40
|
2023-08-13 23:23:18 +02:00
|
|
|
redis:
|
|
|
|
build: ./requirements/redis
|
|
|
|
container_name: redis
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
ipv4_address: 172.20.30.50
|
2023-06-25 06:53:47 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
wordpress:
|
|
|
|
external: true
|