42 lines
1011 B
YAML
Executable File
42 lines
1011 B
YAML
Executable File
services:
|
|
tisbackup_gui:
|
|
container_name: tisbackup_gui
|
|
image: "tisbackup:latest"
|
|
build: .
|
|
volumes:
|
|
- ./config/:/etc/tis/
|
|
- ./backup/:/backup/
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: unless-stopped
|
|
ports:
|
|
- 9980:8080
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: 0.50
|
|
memory: 512M
|
|
reservations:
|
|
cpus: 0.25
|
|
memory: 128M
|
|
tisbackup_cron:
|
|
container_name: tisbackup_cron
|
|
image: "tisbackup:latest"
|
|
build: .
|
|
volumes:
|
|
- ./config/:/etc/tis/
|
|
- ./ssh/:/config_ssh/
|
|
- ./backup/:/backup/
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: always
|
|
command: "/bin/bash /opt/tisbackup/cron.sh"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: 0.50
|
|
memory: 512M
|
|
reservations:
|
|
cpus: 0.25
|
|
memory: 128M
|