feat: add app files

This commit is contained in:
Lenoctambule
2026-04-02 12:04:23 +02:00
parent e3f5cf6a1e
commit f8a48ee181
13 changed files with 524 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
networks:
inception:
name: inception
volumes:
db_data:
name: db_data
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/data/db_data'
site_data:
name: site_data
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/data/site_data'
services:
mariadb :
container_name : mariadb
build : ./mariadb/
networks :
- inception
restart: always
volumes :
- db_data:/var/lib/mysql
env_file:
- .env
environment :
- DB_USER=${DB_USER:-wp}
- DB_PWD=${DB_PWD:-password123}
- DB_ROOT_PWD=${DB_ROOT_PWD:-rootpassword}
wordpress :
container_name : wordpress
build : ./wordpress/
networks :
- inception
hostname : wordpress
depends_on :
- mariadb
restart: always
volumes :
- site_data:/var/www/wordpress
env_file:
- .env
environment :
- DB_USER=${DB_USER:-wp}
- DB_PWD=${DB_PWD:-password123}
- WP_USER=${WP_USER:-rralambo}
- WP_PWD=${WP_PWD:-password123}
- WP_EMAIL=${WP_EMAIL:-email@email.com}
- WP_ADMIN=${WP_ADMIN:-obama}
- WP_ADMIN_PWD=${WP_ADMIN_PWD:-thepresidentpassword}
- WP_ADMIN_EMAIL=${WP_ADMIN_EMAIL:-obama@obamail.com}
nginx:
container_name : nginx
build : ./nginx/
ports :
- 0.0.0.0:443:443
- 0.0.0.0:80:80
networks :
- inception
depends_on :
- wordpress
restart: always
volumes :
- site_data:/var/www/wordpress
- ./certs/:/certs/