1234567891011121314151617181920212223242526272829303132 |
- - hosts: [some-host]
- become: true
- vars:
- or_port: 42218
- pt_port: 51804
- contact_info: admin@optional.com
- tasks:
- - docker_container:
- name: tor_obfs4_bridge
-
-
- image: docker.io/fphammerle/tor-obfs4-bridge@sha256:88224efd53e6aa7a357a683537321e788bca3387ccff743075c00a225a1273de
- env:
- OR_PORT: '{{ or_port }}'
- PT_PORT: '{{ pt_port }}'
- CONTACT_INFO: '{{ contact_info }}'
- volumes:
- - tor_obfs4_bridge_data:/var/lib/tor
- mounts:
- - type: tmpfs
- target: /tmp
-
- tmpfs_mode: '1777'
- tmpfs_size: 4k
- read_only: yes
- ports:
- - '{{ or_port }}:{{ or_port }}'
- - '{{ pt_port }}:{{ pt_port }}'
- cap_drop: [ALL]
- security_opts: [no-new-privileges]
- memory: 256M
- restart_policy: unless-stopped
|