DOSee/docker-compose.yml

28 lines
775 B
YAML
Raw Normal View History

2019-02-20 13:16:03 +11:00
# DOSee Docker compose to load an nginx webhost server
#
# Run: docker-compose up -d
2020-04-01 12:09:45 +11:00
# Access in a browser: http://localhost:8086
2019-06-07 16:59:18 +10:00
#
# Shell access: docker-compose exec web sh
# Reset containers: docker-compose rm
# Reset volumes: docker-compose down --volumes
2019-02-20 13:16:03 +11:00
version: "3.2"
services:
web:
2019-06-07 15:44:56 +10:00
labels:
2020-04-01 12:09:45 +11:00
net.dosee.description: "DOSee an MS-DOS emulator for the web"
2020-04-01 12:20:06 +11:00
container_name: "dosee_web"
2019-02-20 13:16:03 +11:00
# nginx stable is used due to its less frequent updates
# alpine is a tiny linux distribution
image: nginx:stable-alpine
2020-04-01 12:09:45 +11:00
# expose nginx web port 80 as port 8086
2019-02-20 13:16:03 +11:00
ports:
2020-04-01 12:09:45 +11:00
- "8086:80"
2019-06-07 15:44:56 +10:00
volumes:
2019-06-07 16:59:18 +10:00
# bind your local cloned DOSee repo to nginx's html hosting path
- type: bind
2020-08-11 14:42:56 +10:00
source: ./src
2019-06-07 16:59:18 +10:00
target: /usr/share/nginx/html