Back to using name because we have a test file
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2e8c910e00
commit
2e489025d4
|
@ -0,0 +1,65 @@
|
||||||
|
# #############################################################################
|
||||||
|
# NOTE(decentral1se): this is a test compose.yml to test abra based deployments
|
||||||
|
# #############################################################################
|
||||||
|
|
||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
wordpress:
|
||||||
|
image: "wordpress:5.5.1"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
- proxy
|
||||||
|
environment:
|
||||||
|
- WORDPRESS_DB_HOST=mariadb
|
||||||
|
- WORDPRESS_DB_USER=wordpress
|
||||||
|
- WORDPRESS_DB_PASSWORD_FILE=/run/secrets/db_password
|
||||||
|
- WORDPRESS_DB_NAME=wordpress
|
||||||
|
secrets:
|
||||||
|
- db_password
|
||||||
|
deploy:
|
||||||
|
update_config:
|
||||||
|
failure_action: rollback
|
||||||
|
order: start-first
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
- "traefik.http.routers.${NAME}.tls=true"
|
||||||
|
- "traefik.http.services.${NAME}.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.${NAME}.rule=Host(`${DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.${NAME}.tls.certresolver=production"
|
||||||
|
- "traefik.http.routers.${NAME}.entrypoints=web-secure"
|
||||||
|
|
||||||
|
mariadb:
|
||||||
|
image: "mariadb:10.5"
|
||||||
|
volumes:
|
||||||
|
- "mariadb:/var/lib/mysql"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
|
||||||
|
- MYSQL_DATABASE=wordpress
|
||||||
|
- MYSQL_USER=wordpress
|
||||||
|
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
|
||||||
|
secrets:
|
||||||
|
- db_password
|
||||||
|
- db_root_password
|
||||||
|
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
driver: overlay
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mariadb:
|
||||||
|
wordpress_content:
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
db_root_password:
|
||||||
|
external: true
|
||||||
|
name: ${DB_ROOT_PASSWD}
|
||||||
|
db_password:
|
||||||
|
external: true
|
||||||
|
name: ${DB_PASSWD}
|
|
@ -2,7 +2,7 @@
|
||||||
name: Wordpress
|
name: Wordpress
|
||||||
description: Open source software you can use to create a beautiful website, blog, or app
|
description: Open source software you can use to create a beautiful website, blog, or app
|
||||||
arguments:
|
arguments:
|
||||||
stack_name:
|
name:
|
||||||
description: The name of your Wordpress application
|
description: The name of your Wordpress application
|
||||||
example: my-cool-project
|
example: my-cool-project
|
||||||
domain:
|
domain:
|
||||||
|
|
Reference in New Issue