chore: final docker compose version for wordpress
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

pull/38/head
Davide Polonio 2025-02-16 19:26:05 +01:00
parent 0e8e100764
commit 0d67d58f06
2 changed files with 22 additions and 3 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ env-searxng
.*.env .*.env
nextcloud/db.env nextcloud/db.env
nextcloud/nextcloud.env nextcloud/nextcloud.env
kodokanjudoeste/import/

View File

@ -9,16 +9,34 @@ services:
- .db.env - .db.env
- .proxy.env - .proxy.env
- .wordpress.env - .wordpress.env
volumes:
- data:/var/www/html
healthcheck:
test: "test \"$(curl -Lso /dev/null -w''%{http_code}'' http://localhost:80)\" = \"200\""
start_period: 5s
interval: 60s
timeout: 10s
retries: 3
depends_on: depends_on:
- db
db: db:
image: mariadb:11.6.2-ubi9 condition: service_healthy
command: '--default-authentication-plugin=mysql_native_password' db:
image: mysql:8.4-oracle
restart: unless-stopped restart: unless-stopped
healthcheck:
test: "mysql $$MYSQL_DATABASE -u$$MYSQL_USER -p$$MYSQL_PASSWORD -e 'SELECT 1;'"
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
networks: networks:
- internal - internal
env_file: env_file:
- .db.env - .db.env
volumes:
# Enable ONLY for importing the db again
# - ./import:/docker-entrypoint-initdb.d:ro
- db:/var/lib/mysql
networks: networks:
proxy: proxy: