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 all: build $(VOLUMES_D) up
$(VOLUMES_D): $(VOLUMES_D):
echo volumes mkdir -p $(VOLUMES_D)
# mkdir -p $(VOLUMES_D)
build: build:
$(SUDO) docker-compose -f $(COMPOSE) build $(SUDO) docker-compose -f $(COMPOSE) build

View File

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