volumes work now

This commit is contained in:
hugo gogo
2022-09-19 00:47:04 +02:00
parent 2ffe611dd9
commit 3be5af0e68
2 changed files with 10 additions and 15 deletions

View File

@@ -42,8 +42,7 @@ VOLUMES = $(shell $(SUDO) docker volume ls -q)
all: build $(VOLUMES_D) up
$(VOLUMES_D):
echo volumes
# mkdir -p $(VOLUMES_D)
mkdir -p $(VOLUMES_D)
build:
$(SUDO) docker-compose -f $(COMPOSE) build

View File

@@ -28,8 +28,8 @@ services:
env_file: .env
networks:
- inception
# volumes:
# - db_volume:/var/lib/mysql
volumes:
- db_volume:/var/lib/mysql
build:
context: ./requirements/mariadb
args:
@@ -45,11 +45,7 @@ services:
networks:
- inception
volumes:
- type: volume
source: wp_volume
target: /var/www/html
bind:
create_host_path: true
- wp_volume:/var/www/html
build: ./requirements/wordpress
image: wordpress
container_name: wordpress_container
@@ -65,12 +61,12 @@ volumes:
type: none
o: "bind"
device: /home/${LOGIN}/data/wp_volume
# db_volume:
# driver: local
# driver_opts:
# type: none
# o: "bind"
# mountpoint: /home/${LOGIN}/data/db_volume
db_volume:
driver: local
driver_opts:
type: none
o: "bind"
device: /home/${LOGIN}/data/db_volume
networks:
inception: