chore: formatting
This commit is contained in:
parent
a5f871950c
commit
1adc2477a6
32
compose.yml
32
compose.yml
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
x-env: &env
|
||||
DOMAIN:
|
||||
EMAIL_ERROR:
|
||||
|
@ -31,6 +33,7 @@ x-env: &env
|
|||
SMTP_PASSWORD_FILE: /run/secrets/smtp_password
|
||||
SMTP_PORT:
|
||||
SMTP_USER_NAME:
|
||||
|
||||
x-configs: &configs
|
||||
- source: app_config
|
||||
target: /usr/src/app/config/app_config.yml
|
||||
|
@ -41,10 +44,12 @@ x-configs: &configs
|
|||
- source: entrypoint
|
||||
target: /usr/src/app/docker-entrypoint.sh
|
||||
mode: 0555
|
||||
|
||||
x-secrets: &secrets
|
||||
- db_password
|
||||
- secret_key_base
|
||||
- smtp_password
|
||||
|
||||
services:
|
||||
app:
|
||||
image: foodcoops/foodsoft:4.7.1
|
||||
|
@ -69,11 +74,12 @@ services:
|
|||
order: start-first
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.foodsoft.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.foodsoft.entrypoints=web-secure"
|
||||
- "traefik.http.services.foodsoft.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.foodsoft.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- coop-cloud.${STACK_NAME}.app.version=4.7.1-
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+4.7.1"
|
||||
|
||||
cron:
|
||||
image: foodcoops/foodsoft:4.7.1
|
||||
environment:
|
||||
|
@ -85,7 +91,7 @@ services:
|
|||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
labels: ['coop-cloud.${STACK_NAME}.cron.version=4.7.1-']
|
||||
labels: ["coop-cloud.${STACK_NAME}.cron.version=4.7.1-"]
|
||||
worker:
|
||||
image: foodcoops/foodsoft:4.7.1
|
||||
environment:
|
||||
|
@ -96,8 +102,7 @@ services:
|
|||
secrets: *secrets
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
labels: ['coop-cloud.${STACK_NAME}.worker.version=4.7.1-']
|
||||
|
||||
smtp:
|
||||
image: foodcoops/foodsoft:4.7.1
|
||||
configs: *configs
|
||||
|
@ -117,7 +122,7 @@ services:
|
|||
- "traefik.tcp.routers.foodsoft-smtp.rule=HostSNI(`*`)"
|
||||
- "traefik.tcp.routers.foodsoft-smtp.entrypoints=foodsoft-smtp"
|
||||
- "traefik.tcp.services.foodsoft-smtp.loadbalancer.server.port=${SMTP_SERVER_PORT}"
|
||||
- coop-cloud.${STACK_NAME}.smtp.version=4.7.1-
|
||||
|
||||
db:
|
||||
image: "mariadb:10.6"
|
||||
command: "mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_520_ci"
|
||||
|
@ -133,20 +138,20 @@ services:
|
|||
- "db:/var/lib/mysql"
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
labels: ['coop-cloud.${STACK_NAME}.db.version=10.6-']
|
||||
|
||||
cache:
|
||||
image: "redis:6"
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
labels: ['coop-cloud.${STACK_NAME}.cache.version=6-']
|
||||
|
||||
networks:
|
||||
internal:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
configs:
|
||||
app_config:
|
||||
name: ${STACK_NAME}_app_config_${APP_CONFIG_VERSION}
|
||||
|
@ -164,6 +169,7 @@ configs:
|
|||
name: ${STACK_NAME}_production_env_${PRODUCTION_ENV_VERSION}
|
||||
file: production.rb.tmpl
|
||||
template_driver: golang
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||
|
|
Loading…
Reference in New Issue