Compare commits

..
2 Commits
Author SHA1 Message Date
marc 1b63f36b78 restart unless stopped for front
Deploy production / Build front (push) Canceled after 0s
Deploy production / Build back (push) Canceled after 0s
Deploy production / Pull and recreate (push) Canceled after 0s
2023-04-04 02:23:11 +02:00
marc f47e9879ea empty 2022-12-24 00:21:00 +01:00
6 changed files with 8 additions and 13 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ on:
jobs:
build-front:
name: Build and push front
name: Build front
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -38,7 +38,7 @@ jobs:
cache-to: type=gha
build-back:
name: Build and push back
name: Build back
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-2
View File
@@ -1,5 +1,3 @@
Dockerfile
Dockerfile.production
.DS_Store
vendor
public/storage
+1 -2
View File
@@ -38,5 +38,4 @@ RUN usermod -u 1000 www-data
RUN chown -R www-data:www-data /home/numeris
RUN chown -R www-data:www-data /var/log/apache2/
# ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
ENTRYPOINT ["php", "artisan", "serve", "--host", "0.0.0.0", "--port", "8080"]
ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
+2
View File
@@ -69,6 +69,7 @@ services:
front:
image: numerisisep/numeris-front:prod
container_name: numeris_front
restart: unless-stopped
networks:
- caddy
labels:
@@ -96,6 +97,7 @@ services:
front-staging:
image: numerisisep/numeris-front:staging
container_name: numeris_front_staging
restart: unless-stopped
networks:
- caddy
labels:
+3 -3
View File
@@ -15,7 +15,7 @@ services:
image: mysql:5.7
container_name: numeris_mysql
environment:
MYSQL_DATABASE: 'numeris_testing'
MYSQL_DATABASE: 'numeris'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
back:
@@ -27,9 +27,9 @@ services:
environment:
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: numeris_testing
DB_DATABASE: numeris
DB_USERNAME: root
DB_PASSWORD:
DB_PASSWORD: ""
volumes:
- ./back:/home/numeris
- /home/numeris/vendor
-4
View File
@@ -10,9 +10,5 @@ server {
index index.html;
location / {
try_files $uri $uri/ /index.html;
# types { application/octet-stream .pdf; }
}
location ~* \.pdf$ {
add_header Content-disposition "attachment; filename=$1";
}
}