143 lines
3.3 KiB
Plaintext
143 lines
3.3 KiB
Plaintext
name: com-stack
|
|
services:
|
|
mautic:
|
|
container_name: hxki-mautic
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_started
|
|
required: true
|
|
environment:
|
|
MAUTIC_DB_HOST: hxki-mariadb
|
|
MAUTIC_DB_NAME: mautic
|
|
MAUTIC_DB_PASSWORD: supersecure
|
|
MAUTIC_DB_USER: root
|
|
image: mautic/mautic:5-apache
|
|
networks:
|
|
hxki-internal: null
|
|
ports:
|
|
- mode: ingress
|
|
target: 80
|
|
published: "8080"
|
|
protocol: tcp
|
|
restart: unless-stopped
|
|
caddy:
|
|
container_name: hx-caddy
|
|
image: caddy:latest
|
|
networks:
|
|
hxki-internal: null
|
|
ports:
|
|
- mode: ingress
|
|
target: 80
|
|
published: "80"
|
|
protocol: tcp
|
|
- mode: ingress
|
|
target: 443
|
|
published: "443"
|
|
protocol: tcp
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: bind
|
|
source: /opt/hx-ki/com-stack/caddy/Caddyfile
|
|
target: /etc/caddy/Caddyfile
|
|
bind:
|
|
create_host_path: true
|
|
- type: volume
|
|
source: caddy_data
|
|
target: /data
|
|
volume: {}
|
|
- type: volume
|
|
source: caddy_config
|
|
target: /config
|
|
volume: {}
|
|
hxki-grafana:
|
|
container_name: hxki-grafana
|
|
image: grafana/grafana:latest
|
|
networks:
|
|
hxki-internal: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: volume
|
|
source: grafana_data
|
|
target: /var/lib/grafana
|
|
volume: {}
|
|
hxki-mariadb:
|
|
container_name: hxki-mariadb
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: hxki_password
|
|
image: mariadb:10.11
|
|
networks:
|
|
hxki-internal: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: volume
|
|
source: mariadb_data
|
|
target: /var/lib/mysql
|
|
volume: {}
|
|
hxki-n8n:
|
|
container_name: hxki-n8n
|
|
environment:
|
|
N8N_BASIC_AUTH_ACTIVE: "false"
|
|
N8N_DIAGNOSTICS_ENABLED: "false"
|
|
N8N_EDITOR_BASE_URL: https://n8n.hx-ki.com
|
|
N8N_HOST: n8n.hx-ki.com
|
|
N8N_PORT: "5678"
|
|
WEBHOOK_URL: https://n8n.hx-ki.com
|
|
image: docker.n8n.io/n8nio/n8n
|
|
networks:
|
|
hxki-internal: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: bind
|
|
source: /data/HXKI_WORKSPACE/router
|
|
target: /home/node/.n8n
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: /data/HXKI_WORKSPACE
|
|
target: /data/HXKI_WORKSPACE
|
|
bind:
|
|
create_host_path: true
|
|
hxki-postgres:
|
|
container_name: hxki-postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: hxki_password
|
|
image: postgres:15
|
|
networks:
|
|
hxki-internal: null
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: volume
|
|
source: postgres_data
|
|
target: /var/lib/postgresql/data
|
|
volume: {}
|
|
hxki-web:
|
|
command:
|
|
- bash
|
|
- -c
|
|
- cd /app && npm install && npm run start
|
|
container_name: hxki-web
|
|
image: node:18
|
|
networks:
|
|
hxki-internal: null
|
|
volumes:
|
|
- type: bind
|
|
source: /opt/hx-ki/com-stack/web
|
|
target: /app
|
|
bind:
|
|
create_host_path: true
|
|
networks:
|
|
hxki-internal:
|
|
name: hxki-internal
|
|
external: true
|
|
volumes:
|
|
caddy_config:
|
|
name: com-stack_caddy_config
|
|
caddy_data:
|
|
name: com-stack_caddy_data
|
|
grafana_data:
|
|
name: com-stack_grafana_data
|
|
mariadb_data:
|
|
name: com-stack_mariadb_data
|
|
postgres_data:
|
|
name: com-stack_postgres_data
|