add docker support to run typing-web in a container

This commit is contained in:
Michael Becker 2024-04-18 15:57:24 -04:00
parent e9a0419f6c
commit 761bb611c7
2 changed files with 35 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
# location /assets {
# proxy_pass http://assets:8000;
# }
#
# location /data {
# proxy_pass http://data:8000;
# }