add docker support to run typing-web in a container
This commit is contained in:
parent
e9a0419f6c
commit
761bb611c7
27
typing-web/docker/docker-compose.yml
Normal file
27
typing-web/docker/docker-compose.yml
Normal 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
|
||||
8
typing-web/docker/vhost.d/typing-web.local
Normal file
8
typing-web/docker/vhost.d/typing-web.local
Normal file
@ -0,0 +1,8 @@
|
||||
# location /assets {
|
||||
# proxy_pass http://assets:8000;
|
||||
# }
|
||||
#
|
||||
# location /data {
|
||||
# proxy_pass http://data:8000;
|
||||
# }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user