From ae273d3a79fa4a902ecbaca6fdbf49631e8d7234 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 12 Dec 2022 12:21:57 -0800 Subject: infra: use host network and port mapping config: change ttrss to freshrss --- jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jinwei.me/config/roles/wordpress') diff --git a/jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 b/jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 index be85fb4..447b80b 100644 --- a/jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 +++ b/jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 @@ -3,6 +3,7 @@ services: cloudflared: image: cloudflare/cloudflared container_name: cloudflare-tunnel + network_mode: host restart: always command: tunnel run environment: @@ -12,6 +13,8 @@ services: volumes: - "{{ wordpress_home }}/wp-content:/var/www/html/wp-content" restart: always + ports: + - 30081:80 environment: - WORDPRESS_DB_HOST={{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}:{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }} - WORDPRESS_DB_USER={{ lookup('aws_ssm', '/jinwei-me/mysql/username') }} -- cgit v1.2.3