Rename services
continuous-integration/drone/pr Build is failing Details

See compose-stacks/organising#19
This commit is contained in:
3wc 2020-09-29 00:45:00 +02:00
parent d48bb92dda
commit 82332b6854
2 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,7 @@
version: "3.8"
services:
wordpress:
app:
entrypoint: /docker-entrypoint.sh
environment:
- SMTP_HOST=${SMTP_HOST}

View File

@ -2,7 +2,7 @@
version: "3.8"
services:
wordpress:
app:
image: "wordpress:5.5.1"
volumes:
- "wordpress_content:/var/www/html/wp-content/"
@ -10,13 +10,21 @@ services:
- backend
- proxy
environment:
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD_FILE=/run/secrets/db_password
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA}
secrets:
- db_password
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
deploy:
update_config:
failure_action: rollback
@ -33,7 +41,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
mariadb:
db:
image: "mariadb:10.5"
volumes:
- "mariadb:/var/lib/mysql"