diff --git a/typing-web/docker/docker-compose.yml b/typing-web/docker/docker-compose.yml new file mode 100644 index 0000000..f45d6ec --- /dev/null +++ b/typing-web/docker/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3' + +services: + # this is the nginx-proxy server, which serves no content + nginx-proxy: + image: jwilder/nginx-proxy + ports: + - "8008:80" + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - ./vhost.d:/etc/nginx/vhost.d:ro + + # this is the gateway server, which serves default content + gateway: + image: nginx + environment: + - VIRTUAL_HOST=typing-web.local + volumes: + - ../src/typing:/usr/share/nginx/html + # - ../data:/usr/share/nginx/data + + # specify additional servers here, and map paths in vhost.d + # assets: + # image: jwilder/whoami + # + # data: + # image: jwilder/whoami diff --git a/typing-web/docker/vhost.d/typing-web.local b/typing-web/docker/vhost.d/typing-web.local new file mode 100644 index 0000000..085d686 --- /dev/null +++ b/typing-web/docker/vhost.d/typing-web.local @@ -0,0 +1,8 @@ +# location /assets { +# proxy_pass http://assets:8000; +# } +# +# location /data { +# proxy_pass http://data:8000; +# } +