Skip to content

Commit

Permalink
Split staging and dev to no longer fight apache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Sep 18, 2024
1 parent 8443f15 commit 6a7de3f
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 8 deletions.
30 changes: 30 additions & 0 deletions conf/dev.tabroom.com.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<VirtualHost *:80>
ServerAdmin [email protected]

DocumentRoot /www/tabroom/web
ErrorLog /var/log/apache2/dev-tabroom-error.log
CustomLog /var/log/apache2/dev-tabroom-access.log combined

DirectoryIndex index.html index.mhtml
AddType text/html .mhtml

PerlRequire /www/tabroom/web/lib/handler.pl
Redirect /closet "/index/index.mhtml?closet=1"

Alias /favicon.ico /www/tabroom/web/lib/images/favicon.ico

<FilesMatch "\.mhtml$">
SetHandler perl-script
PerlHandler Tab::Mason
</FilesMatch>

<FilesMatch "\.mas$">
Require all denied
</FilesMatch>
</VirtualHost>

<Directory "/www/tabroom/web">
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes FollowSymLinks ExecCGI
Require all granted
</Directory>
13 changes: 6 additions & 7 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
version: '3'
services:
tabroom:
container_name: mason
container_name: mason-dev
build:
context: .
dockerfile: Dockerfile
image: mason:latest
image: mason-dev:latest
restart: always
ports:
- 9000:80
env_file: .env
- 8000:80
volumes:
- ${TABROOM_WEB:-/www/tabroom/web}:/www/tabroom/web:rw
- ${TABROOM_WEB_MASON:-/www/tabroom/web/mason}:/www/tabroom/web/mason:rw
- ${TABROOM_WEB_TMP:-/www/tabroom/web/tmp}:/www/tabroom/web/tmp:rw
- ${TABROOM_PROFILES:-/www/profiles}:/www/profiles:rw
- ${TABROOM_LOGS:-/var/log/apache2}:/var/log/apache2:rw
- ${TABROOM_GENERAL:-/etc/tabroom/General.pm}:/www/tabroom/web/lib/Tab/General.pm:ro
- ./conf/staging.tabroom.com.conf:/etc/apache2/sites-enabled/staging.tabroom.com.conf:ro
- ${TABROOM_GENERAL:-/etc/tabroom/General.dev.pm}:/www/tabroom/web/lib/Tab/General.pm:ro
- ./conf/dev.tabroom.com.conf:/etc/apache2/sites-enabled/dev.tabroom.com.conf:ro
- ./conf/envvars:/etc/apache2/envvars:ro
- ./conf/apache2.conf:/etc/apache2/apache2.conf:ro
- ./conf/perl.conf:/etc/apache2/mods-enabled/perl.conf:ro
- ./conf/mpm_prefork.conf:/etc/apache2/mods-enabled/mpm_prefork.conf:ro
extra_hosts:
- "host.docker.internal:host-gateway"
- "staging-api.tabroom.com:host-gateway"
- "api.dev.tabroom.com:host-gateway"
26 changes: 26 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3'
services:
tabroom:
container_name: mason-staging
build:
context: .
dockerfile: Dockerfile
image: mason-staging:latest
restart: always
ports:
- 9000:80
volumes:
- ${TABROOM_WEB:-/www/tabroom/web}:/www/tabroom/web:rw
- ${TABROOM_WEB_MASON:-/www/tabroom/web/mason}:/www/tabroom/web/mason:rw
- ${TABROOM_WEB_TMP:-/www/tabroom/web/tmp}:/www/tabroom/web/tmp:rw
- ${TABROOM_PROFILES:-/www/profiles}:/www/profiles:rw
- ${TABROOM_LOGS:-/var/log/apache2}:/var/log/apache2:rw
- ${TABROOM_GENERAL:-/etc/tabroom/General.pm}:/www/tabroom/web/lib/Tab/General.pm:ro
- ./conf/staging.tabroom.com.conf:/etc/apache2/sites-enabled/staging.tabroom.com.conf:ro
- ./conf/envvars:/etc/apache2/envvars:ro
- ./conf/apache2.conf:/etc/apache2/apache2.conf:ro
- ./conf/perl.conf:/etc/apache2/mods-enabled/perl.conf:ro
- ./conf/mpm_prefork.conf:/etc/apache2/mods-enabled/mpm_prefork.conf:ro
extra_hosts:
- "host.docker.internal:host-gateway"
- "api.staging.tabroom.com:host-gateway"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ services:
- /etc/tabroom/General.pm:/www/tabroom/web/lib/Tab/General.pm:ro
extra_hosts:
- "host.docker.internal:host-gateway"
- "staging-api.tabroom.com:host-gateway"
- "api.staging.tabroom.com:host-gateway"

0 comments on commit 6a7de3f

Please sign in to comment.