diff options
author | clarkzjw <[email protected]> | 2023-01-01 21:08:22 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-01 21:08:22 -0800 |
commit | e13d4b448efd7174b1b4c8723cbc8be845470c60 (patch) | |
tree | c797ae22f1b2261b40c084e22c1e52dab39a6f2e /photo.jinwei.me/config/roles/wordpress/templates | |
parent | e330106e9e6524fc76c407aa608a60ccef83bbe4 (diff) | |
download | jinwei.me-photo.jinwei.me.tar.gz |
stashphoto.jinwei.me
Diffstat (limited to 'photo.jinwei.me/config/roles/wordpress/templates')
-rw-r--r-- | photo.jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/photo.jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 b/photo.jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 new file mode 100644 index 0000000..447b80b --- /dev/null +++ b/photo.jinwei.me/config/roles/wordpress/templates/docker-compose.yaml.j2 | |||
@@ -0,0 +1,22 @@ | |||
1 | version: '3' | ||
2 | services: | ||
3 | cloudflared: | ||
4 | image: cloudflare/cloudflared | ||
5 | container_name: cloudflare-tunnel | ||
6 | network_mode: host | ||
7 | restart: always | ||
8 | command: tunnel run | ||
9 | environment: | ||
10 | - TUNNEL_TOKEN={{ lookup('aws_ssm', '/jinwei-me/cloudflare/tunnel_token') }} | ||
11 | wordpress: | ||
12 | image: "{{ wordpress_image }}:{{ wordpress_image_tag }}" | ||
13 | volumes: | ||
14 | - "{{ wordpress_home }}/wp-content:/var/www/html/wp-content" | ||
15 | restart: always | ||
16 | ports: | ||
17 | - 30081:80 | ||
18 | environment: | ||
19 | - WORDPRESS_DB_HOST={{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}:{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }} | ||
20 | - WORDPRESS_DB_USER={{ lookup('aws_ssm', '/jinwei-me/mysql/username') }} | ||
21 | - WORDPRESS_DB_PASSWORD={{ lookup('aws_ssm', '/jinwei-me/mysql/password') }} | ||
22 | - WORDPRESS_DB_NAME={{ lookup('aws_ssm', '/jinwei-me/mysql/name') }} | ||