feat: add index service
This commit is contained in:
parent
4f7228912f
commit
10386c08c2
2 changed files with 256 additions and 0 deletions
65
files/docker/index/docker-stack.yaml
Normal file
65
files/docker/index/docker-stack.yaml
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue