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
|
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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user