This commit is contained in:
artemsaga 2023-12-20 19:10:17 +03:00
parent 88a676f6fb
commit cd2be9a53a
5 changed files with 10062 additions and 0 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
NGINX_PORT=8090

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
up: docker-up
down: docker-down
restart: docker-down docker-up
init: docker-down docker-pull docker-build docker-up assets-install
docker-up:
docker compose -f ./docker-compose.yml --compatibility up -d
docker-down:
docker compose -f ./docker-compose.yml down --remove-orphans
docker-pull:
docker compose -f ./docker-compose.yml pull
docker-build:
docker compose -f ./docker-compose.yml build
assets-install:
docker-compose run --rm node yarn install
docker-compose run --rm node yarn run build

16
docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
version: '3.8'
services:
nginx:
image: library/nginx:1-alpine
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/app
working_dir: /app
ports:
- ${NGINX_PORT}:80
restart: unless-stopped
node:
image: library/node:20-alpine
volumes:
- ./:/app
working_dir: /app

View File

@ -0,0 +1,9 @@
server {
listen 80;
index index.html;
root /app/build;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
}

10016
yarn.lock Normal file

File diff suppressed because it is too large Load Diff