27 lines
678 B
Plaintext
27 lines
678 B
Plaintext
|
---
|
||
|
- hosts: localhost
|
||
|
vars:
|
||
|
password: rolaids
|
||
|
tasks:
|
||
|
- name: Create Protonmail Bridge Config volume
|
||
|
docker_volume:
|
||
|
name: protonmail_bridge
|
||
|
|
||
|
- name: Create network interface
|
||
|
command: /usr/bin/ip addr add 192.168.1.63/24 dev enp2s0
|
||
|
ignore_errors: True
|
||
|
|
||
|
- name: Start Protonmail Bridge
|
||
|
docker_container:
|
||
|
name: mail
|
||
|
hostname: mail
|
||
|
recreate: yes
|
||
|
image: shenxn/protonmail-bridge:latest
|
||
|
ports:
|
||
|
- "192.168.1.63:1025:25/tcp"
|
||
|
- "192.168.1.63:1143:143/tcp"
|
||
|
volumes:
|
||
|
- protonmail_bridge:/root
|
||
|
memory: 512M
|
||
|
restart_policy: unless-stopped
|