go mario db

This commit is contained in:
Ubuntu
2025-07-07 10:56:14 +00:00
parent 2c3c6aa50f
commit 0c4857c868
7 changed files with 59 additions and 51 deletions
+15 -11
View File
@@ -1,10 +1,15 @@
version: "3"
networks:
inception:
driver: bridge
services:
nginx:
container_name: nginx
image: nginx
volumes:
- wordpress:/var/www/wordpress
- wp:/var/www/html
networks:
- inception
depends_on:
@@ -20,8 +25,9 @@
wordpress:
container_name: wordpress
env_file: .env
image: wordpress
volumes:
- wordpress:/var/www/wordpress
- wp:/var/www/html
networks:
- inception
build:
@@ -40,28 +46,26 @@
build:
context: ./requirements/mariadb
dockerfile: Dockerfile
image: mariadb
env_file: .env
volumes:
- mariadb:/var/lib/mysql
- db:/var/lib/mysql
restart: always
expose:
- "3306"
volumes:
wordpress:
name: wordpress
wp:
driver: local
driver_opts:
type: none
o: bind
device: /home/yantoine/data/wordpress
mariadb:
device: ${HOME}/data/wp
db:
driver: local
driver_opts:
type: none
o: bind
device: /home/yantoine/data/mariadb
device: ${HOME}/data/db
networks:
inception:
driver: bridge