mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-30 18:51:03 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
---
|
|
version: "3.8"
|
|
services:
|
|
saltyd:
|
|
image: prologic/saltyim:latest
|
|
environment:
|
|
- DEBUG=true
|
|
#This is your server that hosts salty
|
|
- BASE_URL=https://yoursalty.domain.com
|
|
#This is the domain you want to use ie: user@domain.com will point to the above URL
|
|
- PRIMARY_DOMAIN=domain.com
|
|
volumes:
|
|
- saltyim:/data
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
replicas: 1 #do not change this, salty can't horizontal scale
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik"
|
|
- "traefik.http.routers.saltyim.entrypoints=https"
|
|
- "traefik.http.services.saltyim.loadbalancer.server.port=8000"
|
|
- "traefik.http.routers.saltyim.rule=Host(`yoursalty.domain.com`)"
|
|
resources:
|
|
reservations:
|
|
cpus: "0.1"
|
|
memory: 64M
|
|
limits:
|
|
cpus: "0.2"
|
|
memory: 128M
|
|
restart_policy:
|
|
condition: any
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
volumes:
|
|
saltyim:
|
|
driver: local
|
|
|