65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
secrets:
|
|
index_db_pass:
|
|
external: true
|
|
|
|
networks:
|
|
reverse_proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
index_db:
|
|
adminer_plugins:
|
|
|
|
services:
|
|
adminer:
|
|
image: ghcr.io/shyim/adminerevo:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
- default
|
|
- reverse_proxy
|
|
volumes:
|
|
- adminer_plugins:/var/www/html/plugins-custom
|
|
environment:
|
|
ADMINER_DEFAULT_DRIVER: pgsql
|
|
ADMINER_DEFAULT_SERVER: tasks.db
|
|
ADMINER_DEFAULT_USER: postgres
|
|
ADMINER_PLUGINS: tables-filter tinymce edit-calendar edit-foreign enum-option enum-types file-upload slugify struct-comments
|
|
ADMINER_DESIGN: 'pepa-linha-dark'
|
|
deploy:
|
|
rollback_config:
|
|
failure_action: continue
|
|
update_config:
|
|
delay: 2s
|
|
failure_action: rollback
|
|
order: start-first
|
|
placement:
|
|
constraints:
|
|
- node.labels.services_kind==${SERVICE_KIND:-common}
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.index.rule=Host(`index.alecodes.page`)
|
|
- traefik.http.services.index.loadbalancer.server.port=8080
|
|
|
|
db:
|
|
image: postgres
|
|
restart: unless-stopped
|
|
secrets:
|
|
- index_db_pass
|
|
volumes:
|
|
- index_db:/var/lib/postgresql/data
|
|
- type: tmpfs
|
|
target: /dev/shm
|
|
tmpfs:
|
|
size: 134217728 # 128*2^20 bytes = 128Mb
|
|
environment:
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/index_db_pass
|
|
deploy:
|
|
rollback_config:
|
|
failure_action: continue
|
|
update_config:
|
|
delay: 2s
|
|
failure_action: rollback
|
|
order: start-first
|
|
placement:
|
|
constraints:
|
|
- node.labels.services_kind==${SERVICE_KIND:-common}
|