init commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
web
|
||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
** Rebuild **
|
||||
|
||||
docker compose --profile build run --rm satis-build
|
||||
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
satis-nginx:
|
||||
image: nginx:alpine
|
||||
container_name: satis-nginx
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html:ro
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
environment:
|
||||
VIRTUAL_HOST: satis.trweb.hu
|
||||
LETSENCRYPT_HOST: satis.trweb.hu
|
||||
LETSENCRYPT_EMAIL: info@tothbt.com
|
||||
networks:
|
||||
- web
|
||||
|
||||
satis-build:
|
||||
image: composer/satis
|
||||
container_name: satis-build
|
||||
volumes:
|
||||
- ./satis.json:/build/satis.json:ro
|
||||
- ./web:/build/web
|
||||
- ~/.ssh:/root/.ssh:ro
|
||||
working_dir: /build
|
||||
command: ["build", "satis.json", "web"]
|
||||
networks:
|
||||
- web
|
||||
profiles:
|
||||
- build
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
15
nginx/default.conf
Normal file
15
nginx/default.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~* \.(json|zip|tgz)$ {
|
||||
add_header Cache-Control "public, max-age=300";
|
||||
}
|
||||
}
|
||||
7
satis.json
Normal file
7
satis.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "tothbt/satis",
|
||||
"homepage": "https://satis.trweb.hu",
|
||||
"repositories": [],
|
||||
"require-all": true,
|
||||
"output-dir": "web"
|
||||
}
|
||||
Reference in New Issue
Block a user