volumes work now
This commit is contained in:
3
Makefile
3
Makefile
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user