sync container
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
FROM getgrav/grav:latest
|
||||||
|
|
||||||
|
# Copy custom files from Git
|
||||||
|
COPY blueprints/ /var/www/html/user/blueprints/
|
||||||
|
COPY plugins/ /var/www/html/user/plugins/
|
||||||
|
COPY config/ /var/www/html/user/config/
|
||||||
|
COPY pages/ /var/www/html/user/pages/
|
||||||
|
|
||||||
|
# Fix permissions
|
||||||
|
RUN chown -R www-data:www-data /var/www/html/user/
|
||||||
@@ -1,19 +1,11 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
grav-cms:
|
grav-cms:
|
||||||
image: getgrav/grav:latest
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
# Persistent storage for all Grav user content
|
- grav_accounts:/var/www/html/user/accounts
|
||||||
- grav_user:/var/www/html/user
|
- grav_data:/var/www/html/user/data
|
||||||
# Custom blueprints (mounted from host)
|
|
||||||
- ./blueprints:/var/www/html/user/blueprints
|
|
||||||
# Custom plugins
|
|
||||||
- ./plugins/json-export:/var/www/html/user/plugins/json-export
|
|
||||||
# Custom config
|
|
||||||
- ./config:/var/www/html/user/config
|
|
||||||
# Content pages
|
|
||||||
- ./pages:/var/www/html/user/pages
|
|
||||||
environment:
|
environment:
|
||||||
- GRAV_MULTISITE=false
|
- GRAV_MULTISITE=false
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -23,5 +15,5 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
grav_user:
|
grav_accounts:
|
||||||
driver: local
|
grav_data:
|
||||||
Reference in New Issue
Block a user