Skip to content

Commit d15ee6f

Browse files
committed
use nftables backend; bind port 80 to container port
1 parent 7fcdd2c commit d15ee6f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

ansible/roles/testlists/tasks/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
register: user_gid
8181
changed_when: false
8282

83+
- name: Make containerd use nftables backend
84+
ansible.builtin.lineinfile:
85+
path: /etc/containerd/config.toml
86+
line: 'firewall-backend="nftables"'
87+
state: present
88+
notify:
89+
- restart docker
90+
8391
- name: Ensure testlists is running
8492
community.docker.docker_container:
8593
env:
@@ -100,7 +108,8 @@
100108
user: "{{user_uid.stdout}}:{{user_gid.stdout}}"
101109
# use network mode = host to allow traffic from testlists to the statsd exporter without
102110
# creating a network with redirection rules to match the ports
103-
network_mode: host
111+
ports:
112+
- "80:80"
104113
volumes:
105114
- /var/lib/ooniapi:/var/lib/ooniapi
106115
tags:

0 commit comments

Comments
 (0)