diff options
Diffstat (limited to 'jinwei.me/config/roles')
-rw-r--r-- | jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
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: | |||
3 | cloudflared: | 3 | cloudflared: |
4 | image: cloudflare/cloudflared | 4 | image: cloudflare/cloudflared |
5 | container_name: cloudflare-tunnel | 5 | container_name: cloudflare-tunnel |
6 | network_mode: host | ||
6 | restart: always | 7 | restart: always |
7 | command: tunnel run | 8 | command: tunnel run |
8 | environment: | 9 | environment: |
@@ -12,6 +13,8 @@ services: | |||
12 | volumes: | 13 | volumes: |
13 | - "{{ wordpress_home }}/wp-content:/var/www/html/wp-content" | 14 | - "{{ wordpress_home }}/wp-content:/var/www/html/wp-content" |
14 | restart: always | 15 | restart: always |
16 | ports: | ||
17 | - 30081:80 | ||
15 | environment: | 18 | environment: |
16 | - WORDPRESS_DB_HOST={{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}:{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }} | 19 | - WORDPRESS_DB_HOST={{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}:{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }} |
17 | - WORDPRESS_DB_USER={{ lookup('aws_ssm', '/jinwei-me/mysql/username') }} | 20 | - WORDPRESS_DB_USER={{ lookup('aws_ssm', '/jinwei-me/mysql/username') }} |