Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b63f36b78 | ||
|
|
f47e9879ea |
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
Dockerfile
|
||||
Dockerfile.production
|
||||
.DS_Store
|
||||
vendor
|
||||
public/storage
|
||||
|
||||
+1
-2
@@ -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" ]
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user