You've already forked wc-bootstrap
Refine Docker stack configuration
- Use mariadb:latest and wordpress:php8.4 floating tags - Add private registry image name (hub.bundespruefstelle.ch/woocommerce) - Add restart policies (always for prod, unless-stopped for dev) - Move .env-dist to project root Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: woocommerce-db
|
container_name: woocommerce-db
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
container_name: woocommerce
|
container_name: woocommerce
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ../wp-bootstrap:/var/www/html/wp-content/themes/wp-bootstrap
|
- ../wp-bootstrap:/var/www/html/wp-content/themes/wp-bootstrap
|
||||||
- .:/var/www/html/wp-content/themes/wc-bootstrap
|
- .:/var/www/html/wp-content/themes/wc-bootstrap
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:11
|
image: mariadb:latest
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
@@ -15,6 +16,8 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
|
image: hub.bundespruefstelle.ch/woocommerce:latest
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ RUN composer install --no-dev --optimize-autoloader --no-interaction
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# Stage 4 — Final WordPress image
|
# Stage 4 — Final WordPress image
|
||||||
###############################################################################
|
###############################################################################
|
||||||
FROM wordpress:6.9.1-php8.4-apache AS wp_runtime
|
FROM wordpress:php8.4 AS wp_runtime
|
||||||
|
|
||||||
RUN curl -sSfL -o /usr/local/bin/wp \
|
RUN curl -sSfL -o /usr/local/bin/wp \
|
||||||
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
||||||
|
|||||||
Reference in New Issue
Block a user