add docker
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM nginx:1.27.0-alpine3.19
|
||||
|
||||
COPY html /usr/share/nginx/html
|
12
README.md
@ -1,3 +1,13 @@
|
||||
## My first game Tetris
|
||||
## Tetris game
|
||||
|
||||
Optimized for Firefox mobile for android
|
||||
|
||||
*docker configuration*
|
||||
|
||||
`docker-compose build`
|
||||
`docker-compose up -d`
|
||||
|
||||
Start: `sudo docker start tetris`
|
||||
Start `sudo docker compose -f /data/tetris/docker-compose.yml up -d`
|
||||
|
||||
Stop: `sudo docker stop tetris`
|
18
docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
||||
services:
|
||||
nginx:
|
||||
container_name: tetris
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
networks:
|
||||
- proxynet
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.nginx.rule=Host(`tetris.${SERVER_DOMAIN}`)"
|
||||
# For dev:
|
||||
volumes:
|
||||
- ./html:/usr/share/nginx/html
|
||||
|
||||
networks:
|
||||
proxynet:
|
||||
external: true
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 316 B After Width: | Height: | Size: 316 B |