mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-13 18:04:54 +01:00
build
This commit is contained in:
37
__swarm/influxdb/influxdb-swarm.yml
Normal file
37
__swarm/influxdb/influxdb-swarm.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
services:
|
||||
influxdb:
|
||||
ports:
|
||||
- target: 8086
|
||||
published: 8087
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
volumes:
|
||||
- data:/var/lib/influxdb2
|
||||
- config:/etc/influxdb2
|
||||
secrets:
|
||||
- influxdb2-admin-token
|
||||
environment:
|
||||
DOCKER_INFLUXDB_INIT_MODE: setup
|
||||
DOCKER_INFLUXDB_INIT_USERNAME: ha
|
||||
DOCKER_INFLUXDB_INIT_PASSWORD: haHAhaHA
|
||||
DOCKER_INFLUXDB_INIT_ORG: ha
|
||||
DOCKER_INFLUXDB_INIT_BUCKET: ha
|
||||
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token
|
||||
image: ${DOCKER_REGISTRY:-}influxdb:2
|
||||
healthcheck:
|
||||
test: echo test > /var/lib/influxdb2/hc || exit 1
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 2
|
||||
deploy:
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: 'true'
|
||||
wud.watch: 'true'
|
||||
wud.watch.digest: 'true'
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
secrets:
|
||||
influxdb2-admin-token:
|
||||
external: true
|
||||
27
__swarm/jupyter/jupyter-swarm.yml
Normal file
27
__swarm/jupyter/jupyter-swarm.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
base-notebook:
|
||||
ports:
|
||||
- target: 8888
|
||||
published: 8888
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
volumes:
|
||||
- data:/home/jovyan/work
|
||||
image: ${DOCKER_REGISTRY:-}jupyter/base-notebook:latest
|
||||
deploy:
|
||||
labels:
|
||||
homepage.container: jupyter-base-notebook-1
|
||||
homepage.description: Python server
|
||||
homepage.group: Utils
|
||||
homepage.href: http://m-server.home.lan:8888/
|
||||
homepage.icon: ${APPNAME}.png
|
||||
homepage.name: Jupyter Notebook
|
||||
homepage.server: my-docker-swarm
|
||||
wud.watch: 'true'
|
||||
wud.watch.digest: 'true'
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
volumes:
|
||||
data:
|
||||
@@ -54,7 +54,7 @@ services:
|
||||
container_name: esphome
|
||||
image: ${DOCKER_REGISTRY:-}esphome/esphome:latest
|
||||
volumes:
|
||||
- /share/docker_data/esphome/config:/config
|
||||
- /share/docker_data/esphome_config:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: ${RESTART:-unless-stopped}
|
||||
privileged: true
|
||||
|
||||
Reference in New Issue
Block a user