King Zone - acme
type: channel
link: https://kingtam.win/tag/acme/
items: 虛擬私有網路 (VPC) 環境記錄

虛擬私有網路 (VPC) 環境記錄
type: item
date: 2022-01-26T11:08:09+08:00
description: VPC Network DiagramOPC.png前言: 我之前的博客是部署在家中的機器，發現Oracle 提供雲免費套餐服務，包括2 個基於 AMD 的計算虛擬機，每個虛擬機配備 2Core CPU 和 1 GB 內存，對於私人博客是夠用，開始嘗試將部份服務轉移到Oracle的VPC內，於是就有了這篇記錄。目錄內容: DockerDNMPDDNSACMEVPNZeroTierTailscaleRcloneDocker DNMP(GitHub - yeszao/dnmp)DNMP （Docker + Nginx + MySQL + PHP7/5 + Redis）是一款全功能的LNMP一鍵安裝程序。我主要是用於建立私人博客，用文字記錄生活。默認支持pdo_mysql、mysqli、mbstring、gd、curl、opcache等常用熱門擴展，根據環境靈活配置。version: "3" services: nginx: build: context: ./services/nginx args: NGINX_VERSION: nginx:${NGINX_VERSION} CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL} NGINX_INSTALL_APPS: ${NGINX_INSTALL_APPS} container_name: nginx ports: #- "${NGINX_HTTP_HOST_PORT}:80" #- "${NGINX_HTTPS_HOST_PORT}:443" - "1080:1080" - "2080:2080" - "3080:3080" volumes: - ${SOURCE_DIR}:/www/:rw - ${NGINX_SSL_CERTIFICATE_DIR}:/ssl:rw - ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw - ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro - ${NGINX_FASTCGI_PHP_CONF}:/etc/nginx/fastcgi-php.conf:ro - ${NGINX_FASTCGI_PARAMS}:/etc/nginx/fastcgi_params:ro - ${NGINX_LOG_DIR}:/var/log/nginx/:rw environment: TZ: "$TZ" restart: always networks: - default php: build: context: ./services/php args: PHP_VERSION: php:${PHP_VERSION}-fpm-alpine CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL} PHP_EXTENSIONS: ${PHP_EXTENSIONS} TZ: "$TZ" container_name: php expose: - 9501 extra_hosts: - "www.site1.com:172.17.0.1" volumes: - ${SOURCE_DIR}:/www/:rw - ${PHP_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro - ${PHP_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw - ${PHP_LOG_DIR}:/var/log/php - ${DATA_DIR}/composer:/tmp/composer restart: always cap_add: - SYS_PTRACE networks: - default mysql: image: mysql:${MYSQL_VERSION} container_name: mysql ports: - "${MYSQL_HOST_PORT}:3306" volumes: - ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro - ${DATA_DIR}/mysql:/var/lib/mysql/:rw restart: always networks: - default environment: MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}" TZ: "$TZ" networks: default:返回目錄內容DDNS (qmcgaw/ddns-updater)輕量型容器，可定期為多個 DNS 供應商更新 DNS A 和/或…