inception/srcs/docker-compose.yml
Danny Houtworm 2bce8efb23 bla
2023-08-14 01:00:42 +00:00

83 lines
2.1 KiB
YAML

version: '3'
services:
nginx:
build: ./requirements/nginx
hostname: djonker.42.fr
container_name: nginx
restart: always
volumes:
- /home/djonker/data/wordpress:/var/www/wordpress
- /home/djonker/data/adminer:/var/www/adminer
ports:
- 80:80
- 443:443
networks:
wordpress:
ipv4_address: 172.20.30.10
mariadb:
build: ./requirements/mariadb
environment:
- WORDPRESSDATABASE=${WORDPRESSDATABASE}
- WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
- WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
init: true
container_name: mariadb
restart: always
volumes:
- /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
networks:
wordpress:
ipv4_address: 172.20.30.20
wordpress:
build: ./requirements/wordpress
environment:
- WORDPRESSDATABASE=${WORDPRESSDATABASE}
- WORDPRESSDATABASEUSER=${WORDPRESSDATABASEUSER}
- WORDPRESSDATABASEPASSWD=${WORDPRESSDATABASEPASSWD}
- WPADMINUSER=${WPADMINUSER}
- WPADMINPASSWD=${WPADMINPASSWD}
- WPADMINEMAIL=${WPADMINEMAIL}
- WPUSERUSER=${WPUSERUSER}
- WPUSERPASSWD=${WPUSERPASSWD}
- WPUSEREMAIL=${WPUSEREMAIL}
init: true
container_name: wordpress
restart: always
volumes:
- /home/djonker/data/wordpress:/var/www/wordpress
networks:
wordpress:
ipv4_address: 172.20.30.30
ftp:
build: ./requirements/ftp
container_name: ftp
restart: always
volumes:
- /home/djonker/data/wordpress:/home/admin
ports:
- 21:21
- 21000:21000
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
redis:
build: ./requirements/redis
container_name: redis
restart: always
networks:
wordpress:
ipv4_address: 172.20.30.50
networks:
wordpress:
external: true