generated from coop-cloud/example
Version 5.36-backdrop-php7.4; sync labels
This commit is contained in:
parent
375f32a1e9
commit
51b32a552c
|
@ -0,0 +1,21 @@
|
||||||
|
export APP=civicrm-backdrop
|
||||||
|
|
||||||
|
export DOMAIN=civicrm-backdrop.example.com
|
||||||
|
## Domain aliases
|
||||||
|
#export EXTRA_DOMAINS=', `www.civicrm-backdrop.example.com`'
|
||||||
|
export LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
|
export CIVICRM_DB_PASS="<set this>"
|
||||||
|
export BACKDROP_DB_PASS="<set this>"
|
||||||
|
|
||||||
|
export CIVICRM_SITE_KEY="<set this>"
|
||||||
|
|
||||||
|
# export SMTP_HOST=
|
||||||
|
# export SMTP_MAILDOMAIN=
|
||||||
|
|
||||||
|
export PHP_DATE_TIMEZONE="UTC"
|
||||||
|
|
||||||
|
export SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
||||||
|
export SECRET_DB_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
|
export CREATE_DATABASES_CONF_VERSION=v1
|
68
compose.yml
68
compose.yml
|
@ -1,16 +1,36 @@
|
||||||
---
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nginx:1.19.2
|
image: michaelmcandrew/civicrm:5.36-backdrop-php7.4
|
||||||
|
environment:
|
||||||
|
- APACHE_RUN_USER=civicrm
|
||||||
|
- DOMAIN
|
||||||
|
- BASE_URL=https://${DOMAIN}
|
||||||
|
- CIVICRM_DB_NAME=civicrm
|
||||||
|
- CIVICRM_DB_USER=backdrop
|
||||||
|
- CIVICRM_DB_PORT=3306
|
||||||
|
- CIVICRM_DB_PASS
|
||||||
|
- CIVICRM_DB_HOST=db
|
||||||
|
- BACKDROP_DB_NAME=backdrop
|
||||||
|
- BACKDROP_DB_USER=backdrop
|
||||||
|
- BACKDROP_DB_PASS=${CIVICRM_DB_PASS}
|
||||||
|
- BACKDROP_DB_HOST=db
|
||||||
|
- BACKDROP_DB_PORT=3306
|
||||||
|
- CIVICRM_SITE_KEY
|
||||||
|
volumes:
|
||||||
|
- civicrm:/var/www/html/files
|
||||||
|
- civicrm_state:/state
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
- internal
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
|
@ -19,13 +39,43 @@ services:
|
||||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 10
|
|
||||||
start_period: 1m
|
|
||||||
|
|
||||||
|
- coop-cloud.${STACK_NAME}.app.version=5.36-backdrop-php7.4-da1b6a74
|
||||||
|
db:
|
||||||
|
image: "mariadb:10.5"
|
||||||
|
volumes:
|
||||||
|
- "mariadb:/var/lib/mysql"
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
|
||||||
|
- MYSQL_USER=backdrop
|
||||||
|
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
|
||||||
|
secrets:
|
||||||
|
- db_password
|
||||||
|
- db_root_password
|
||||||
|
configs:
|
||||||
|
- source: create_databases
|
||||||
|
target: /docker-entrypoint-initdb.d/01-create-databases.sql
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- coop-cloud.${STACK_NAME}.db.version=10.5-36288c67
|
||||||
|
volumes:
|
||||||
|
civicrm:
|
||||||
|
civicrm_state:
|
||||||
|
mariadb:
|
||||||
|
secrets:
|
||||||
|
db_root_password:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}
|
||||||
|
db_password:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
internal:
|
||||||
|
configs:
|
||||||
|
create_databases:
|
||||||
|
name: ${STACK_NAME}_create_databases_${CREATE_DATABASES_CONF_VERSION}
|
||||||
|
file: create-databases.sql
|
||||||
|
|
Reference in New Issue