add docker

This commit is contained in:
leo 2024-08-09 07:13:04 +05:00
parent 28e413eed5
commit c4e11d6828
28 changed files with 33 additions and 2 deletions

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:1.27.0-alpine3.19
COPY html /usr/share/nginx/html

View File

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

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 442 B

View File

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 316 B