Compare commits
3 Commits
9892f2caf5
...
b7c8c0f9c9
| Author | SHA1 | Date | |
|---|---|---|---|
| b7c8c0f9c9 | |||
| d0168d7b7d | |||
| 4562bbe9c5 |
+13
-4
@@ -7,14 +7,23 @@
|
||||
# ignora tudo dentro de wp-content
|
||||
/webroot/wp-content/*
|
||||
|
||||
# permite o que é seu
|
||||
# permite as pastas (mas não o conteúdo delas)
|
||||
!/webroot/wp-content/plugins/
|
||||
!/webroot/wp-content/themes/
|
||||
!/webroot/wp-content/mu-plugins/
|
||||
|
||||
# permite arquivos específicos se precisar
|
||||
!/webroot/wp-content/plugins/seu-plugin/
|
||||
!/webroot/wp-content/themes/seu-tema/
|
||||
/webroot/wp-content/plugins/*
|
||||
/webroot/wp-content/themes/*
|
||||
/webroot/wp-content/mu-plugins/*
|
||||
|
||||
# permite o .gitkeep para que a pasta vazia seja versionada
|
||||
!/webroot/wp-content/plugins/.gitkeep
|
||||
!/webroot/wp-content/themes/.gitkeep
|
||||
!/webroot/wp-content/mu-plugins/.gitkeep
|
||||
|
||||
# se no futuro quiser versionar algo específico:
|
||||
# !/webroot/wp-content/themes/seu-tema/
|
||||
# !/webroot/wp-content/themes/seu-tema/**
|
||||
|
||||
# regras gerais
|
||||
.DS_Store
|
||||
|
||||
+9
-3
@@ -3,7 +3,7 @@ name: ${WPSTACK_PROJECT_NAME:-wpstack}
|
||||
services:
|
||||
|
||||
reverse-proxy:
|
||||
container_name: reverse-proxy
|
||||
container_name: ${WPSTACK_PROJECT_NAME:-wpstack}-reverse-proxy
|
||||
image: hackeamos/httpd
|
||||
build:
|
||||
context: './docker/nginx'
|
||||
@@ -11,6 +11,8 @@ services:
|
||||
- app
|
||||
volumes:
|
||||
- ./webroot:/var/www/html
|
||||
- ../repo/wp-content/themes/itforumportal:/var/www/html/wp-content/themes/itforumportal
|
||||
- ../repo/wp-content/plugins/advanced-custom-fields-pro:/var/www/html/wp-content/plugins/advanced-custom-fields-pro
|
||||
environment:
|
||||
WORDPRESS_SITEURL: ${WPSTACK_PROTOCOL}://${WPSTACK_DOMAIN}/${WPSTACK_URLPATH:-}
|
||||
WORDPRESS_SITE_TYPE: ${WPSTACK_MULTISITE:-regular}
|
||||
@@ -23,18 +25,21 @@ services:
|
||||
- proxy-network
|
||||
|
||||
app:
|
||||
container_name: app
|
||||
container_name: ${WPSTACK_PROJECT_NAME:-wpstack}-app
|
||||
image: hackeamos/wp
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/wordpress/Dockerfile
|
||||
volumes:
|
||||
- ./webroot:/var/www/html
|
||||
- ../repo/wp-content/themes/itforumportal:/var/www/html/wp-content/themes/itforumportal
|
||||
- ../repo/wp-content/plugins/advanced-custom-fields-pro:/var/www/html/wp-content/plugins/advanced-custom-fields-pro
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: ${DB_USER}
|
||||
WORDPRESS_DB_NAME: ${DB_NAME}
|
||||
WORDPRESS_DB_PASSWORD: ${DB_PASS}
|
||||
WORDPRESS_TABLE_PREFIX: ${DB_PREFIX:-wp_}
|
||||
WORDPRESS_SITEURL: ${WPSTACK_PROTOCOL}://${WPSTACK_DOMAIN}/${WPSTACK_URLPATH:-}
|
||||
WORDPRESS_BLOGNAME: ${WPSTACK_BLOGNAME:-}
|
||||
WORDPRESS_ADMIN_USER: ${WPSTACK_ADMIN_USER:-admin}
|
||||
@@ -51,10 +56,11 @@ services:
|
||||
- proxy-network
|
||||
|
||||
db:
|
||||
container_name: db
|
||||
container_name: ${WPSTACK_PROJECT_NAME:-wpstack}-db
|
||||
image: mariadb
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
- ../db:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
MARIADB_RANDOM_ROOT_PASSWORD: true
|
||||
MARIADB_USER: ${DB_USER}
|
||||
|
||||
@@ -23,5 +23,5 @@ if which wp && ! wp core is-installed; then
|
||||
fi
|
||||
|
||||
if test "$(wp theme list --format=count)" = "0"; then
|
||||
wp theme install ${WORDPRESS_DEFAULT_THEME:-twentytwentysix} --force --activate;
|
||||
wp theme install ${WORDPRESS_DEFAULT_THEME:-twentytwentyfive} --force --activate;
|
||||
fi
|
||||
Reference in New Issue
Block a user