inception/srcs/docker-compose.yml
Danny Houtworm 62cb0edc4b bla
2023-08-10 08:32:03 +00:00

56 lines
1.3 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
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
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
- 20:20
- 21000:21000
networks:
wordpress:
external: true