Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
319ee611fb
20
Makefile
Normal file
20
Makefile
Normal 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
16
docker-compose.yml
Normal 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
|
9
docker/nginx/default.conf
Normal file
9
docker/nginx/default.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
index index.html;
|
||||||
|
root /app/build;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user