This commit is contained in:
parent
15fc29ec2e
commit
75cfe13650
@ -3,7 +3,7 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
root /var/www/cgk-streaming-roster/public;
|
root /var/www/cgk-rooster-streamen/public;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@ -12,12 +12,12 @@ server {
|
|||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass php-cgk-streaming-roster:9000;
|
fastcgi_pass php-cgk-rooster-streamen:9000;
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||||
fastcgi_param HTTP_COOKIE $http_cookie;
|
fastcgi_param HTTP_COOKIE $http_cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/cgk-streaming-roster-error.log;
|
error_log /var/log/nginx/cgk-rooster-streamen-error.log;
|
||||||
access_log /var/log/nginx/cgk-streaming-roster-access.log;
|
access_log /var/log/nginx/cgk-rooster-streamen-access.log;
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
echo -e "\033[36;01m+ Executing migrations\033[0m"
|
echo -e "\033[36;01m+ Executing migrations\033[0m"
|
||||||
|
|
||||||
/var/www/cgk-streaming-roster/bin/console doctrine:migrations:migrate --no-interaction
|
/var/www/cgk-rooster-streamen/bin/console doctrine:migrations:migrate --no-interaction
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\033[0;31mAn error occurred when executing migrations.\033[0m"
|
echo -e "\033[0;31mAn error occurred when executing migrations.\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
FROM php:8.3-fpm
|
FROM php:8.3-fpm
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /var/www/cgk-streaming-roster
|
WORKDIR /var/www/cgk-rooster-streamen
|
||||||
|
|
||||||
# Install required system dependencies
|
# Install required system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|||||||
@ -43,7 +43,7 @@ RUN npm install && npm run build
|
|||||||
FROM php:8.3-fpm
|
FROM php:8.3-fpm
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /var/www/cgk-streaming-roster
|
WORKDIR /var/www/cgk-rooster-streamen
|
||||||
|
|
||||||
# Install required PHP extensions (must be in runtime)
|
# Install required PHP extensions (must be in runtime)
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|||||||
20
README.md
20
README.md
@ -1,6 +1,6 @@
|
|||||||
# cgk-streaming-roster
|
# cgk-rooster-streamen
|
||||||
|
|
||||||
Streaming roster for CGK Leerdam - keeping track of who is streaming when.
|
Roster for streaming for CGK Leerdam - keeping track of who is streaming when.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
If you actually want to develop on this, you'll need a Nginx container to serve the requests, and a Postgres container as database.
|
If you actually want to develop on this, you'll need a Nginx container to serve the requests, and a Postgres container as database.
|
||||||
@ -11,10 +11,10 @@ You can use the following configuration in a `compose.override.yaml` file:
|
|||||||
```
|
```
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
container_name: 'cgk-streaming-roster-nginx'
|
container_name: 'cgk-rooster-streamen-nginx'
|
||||||
image: nginx:1.27-alpine
|
image: nginx:1.27-alpine
|
||||||
networks:
|
networks:
|
||||||
- 'cgk-streaming-roster-network'
|
- 'cgk-rooster-streamen-network'
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
@ -22,16 +22,16 @@ services:
|
|||||||
- ./docker/dev/nginx:/etc/nginx/conf.d/
|
- ./docker/dev/nginx:/etc/nginx/conf.d/
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: 'cgk-streaming-roster-database'
|
container_name: 'cgk-rooster-streamen-database'
|
||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: cgk-streaming-roster
|
POSTGRES_USER: cgk-rooster-streamen
|
||||||
POSTGRES_PASSWORD: mypassword
|
POSTGRES_PASSWORD: mypassword
|
||||||
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
|
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
networks:
|
networks:
|
||||||
- 'cgk-streaming-roster-network'
|
- 'cgk-rooster-streamen-network'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "pg_isready", "-d", "${POSTGRES_USER}", "-U", "${POSTGRES_USER}" ]
|
test: [ "CMD", "pg_isready", "-d", "${POSTGRES_USER}", "-U", "${POSTGRES_USER}" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@ -41,12 +41,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./docker/volumes/postgres/data:/var/lib/postgresql/data:rw
|
- ./docker/volumes/postgres/data:/var/lib/postgresql/data:rw
|
||||||
|
|
||||||
php-cgk-streaming-roster:
|
php-cgk-rooster-streamen:
|
||||||
networks:
|
networks:
|
||||||
- 'cgk-streaming-roster-network'
|
- 'cgk-rooster-streamen-network'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
cgk-streaming-roster-network
|
cgk-rooster-streamen-network
|
||||||
driver: bridge
|
driver: bridge
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
php-cgk-streaming-roster:
|
php-cgk-rooster-streamen:
|
||||||
build: ./Dockerfile
|
build: ./Dockerfile
|
||||||
container_name: 'php-cgk-streaming-roster'
|
container_name: 'php-cgk-rooster-streamen'
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/www/cgk-streaming-roster
|
- .:/var/www/cgk-rooster-streamen
|
||||||
networks:
|
networks:
|
||||||
- 'b7d_shared'
|
- 'b7d_shared'
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ framework:
|
|||||||
|
|
||||||
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
||||||
# Remove or comment this section to explicitly disable session support.
|
# Remove or comment this section to explicitly disable session support.
|
||||||
|
trusted_proxies: '0.0.0.0/0'
|
||||||
session:
|
session:
|
||||||
handler_id: null
|
handler_id: null
|
||||||
cookie_secure: auto
|
cookie_secure: auto
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user