/
/
/
Ansible role that provisions my storage server.
1# Restic Backup Server Docker Compose Configuration
2# Generated by Ansible - DO NOT EDIT MANUALLY
3
4
5services:
6 restic-server:
7 image: {{ restic_image }}:{{ restic_version }}
8 container_name: restic-server
9 restart: unless-stopped
10
11 # Environment Configuration
12
13 # Port Mapping
14 ports:
15 - "{{ restic_backup_host_port }}:{{ restic_backup_port }}"
16
17 # Volume Mounts
18 volumes:
19 - {{ restic_backup_data_dir }}:/data
20
21
22 # Network
23 networks:
24 - {{ storage_docker_network }}
25
26 # Environment variables for configuration
27 environment:
28 DATA_DIRECTORY: /data
29 OPTIONS: >-
30 --listen 0.0.0.0:{{ restic_backup_port }}
31 --append-only=false
32 --private-repos=false
33 --no-auth
34
35
36networks:
37 {{ storage_docker_network }}:
38 external: true