wipe: Add persistent storage
This commit is contained in:
parent
de6cb040d5
commit
51d1b692f2
@ -26,10 +26,12 @@ services:
|
|||||||
image: registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
image: registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
||||||
volumes:
|
volumes:
|
||||||
- www-data:/var/www
|
- www-data:/var/www
|
||||||
|
- storage-data:/var/www/storage
|
||||||
pod.component.nginx: |
|
pod.component.nginx: |
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
volumes:
|
volumes:
|
||||||
- www-data:/var/www
|
- www-data:/var/www
|
||||||
|
- storage-data:/var/www/storage
|
||||||
- nginx-config:/etc/nginx/templates
|
- nginx-config:/etc/nginx/templates
|
||||||
pod.copy.fpm: /var/conf/wipe/.env:/var/www/.env
|
pod.copy.fpm: /var/conf/wipe/.env:/var/www/.env
|
||||||
pod.init.components: |
|
pod.init.components: |
|
||||||
@ -38,6 +40,11 @@ services:
|
|||||||
command: ["cp -r /var/www/* /mnt/www"]
|
command: ["cp -r /var/www/* /mnt/www"]
|
||||||
volumes:
|
volumes:
|
||||||
- www-data:/mnt/www
|
- www-data:/mnt/www
|
||||||
|
- image: registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
||||||
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
|
command: ["cp -rnp /var/www/storage/* /mnt/storage"]
|
||||||
|
volumes:
|
||||||
|
- storage-data:/mnt/storage
|
||||||
- image: registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
- image: registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
command: ["cp -r /var/www/nginx/* /mnt/config"]
|
command: ["cp -r /var/www/nginx/* /mnt/config"]
|
||||||
@ -50,6 +57,7 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- nginx-config:/mnt/nginx-config
|
- nginx-config:/mnt/nginx-config
|
||||||
- www-data:/mnt/www-data
|
- www-data:/mnt/www-data
|
||||||
|
- storage-data:/mnt/storage-data
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
dotenv_{{ dotenv_file.checksum }}:
|
dotenv_{{ dotenv_file.checksum }}:
|
||||||
@ -64,3 +72,7 @@ volumes:
|
|||||||
name: {{'www-data.{{.Task.ID}}'}}
|
name: {{'www-data.{{.Task.ID}}'}}
|
||||||
labels:
|
labels:
|
||||||
com.github.rycus86.podlike.volume-ref: www-data
|
com.github.rycus86.podlike.volume-ref: www-data
|
||||||
|
storage-data:
|
||||||
|
name: {{'www-data.{{.Task.ID}}'}}
|
||||||
|
labels:
|
||||||
|
com.github.rycus86.podlike.volume-ref: storage-data
|
||||||
|
Loading…
Reference in New Issue
Block a user