diff --git a/docker-compose.yml b/docker-compose.yml index faedd90..23ed86b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ version: "3.2" -services: +services: json-gen: build: context: ./ @@ -8,4 +8,15 @@ services: restart: always ports: - '8777:8000' - command: [ 'nginx-debug', '-g', 'daemon off;' ] \ No newline at end of file + networks: + - fpm_proxy-tier + environment: + - VIRTUAL_HOST=json.cobb.wang + - VIRTUAL_PORT=8000 + - LETSENCRYPT_HOST=json.cobb.wang + - LETSENCRYPT_EMAIL=emoxun8215@126.com + command: [ 'nginx-debug', '-g', 'daemon off;' ] + +networks: + fpm_proxy-tier: + external: true \ No newline at end of file