minor port changes + add apache + vhosts
This commit is contained in:
parent
fbe9dceb89
commit
0588028b97
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
mongo-volume/
|
@ -46,10 +46,19 @@ RUN deno upgrade && \
|
||||
# Install code-server
|
||||
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
|
||||
# Install other tools if needed
|
||||
RUN apt update && \
|
||||
apt install git nano apache2 -y && \
|
||||
service apache2 start
|
||||
|
||||
# Enable Apache modules and restart apache
|
||||
RUN a2enmod rewrite deflate proxy proxy_ajp proxy_http proxy_wstunnel && \
|
||||
service apache2 restart
|
||||
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
EXPOSE 3000/tcp
|
||||
EXPOSE 20000/tcp
|
||||
EXPOSE 21000/tcp
|
||||
EXPOSE 9000/tcp
|
||||
EXPOSE 8080/tcp
|
||||
EXPOSE 8888/tcp
|
||||
|
18
config/vhosts/code-server.conf
Normal file
18
config/vhosts/code-server.conf
Normal file
@ -0,0 +1,18 @@
|
||||
<VirtualHost *:8080>
|
||||
ServerName localhost
|
||||
ServerAdmin kishan@kinesis.games
|
||||
|
||||
ErrorLog /var/log/apache2/error.log
|
||||
CustomLog /var/log/apache2/access.log combined
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
ProxyPass / http://127.0.0.1:9000/
|
||||
ProxyPassReverse / http://127.0.0.1:9000/
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /(.*) ws://127.0.0.1:9000/$1 [P,L]
|
||||
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
|
||||
RewriteRule /(.*) http://127.0.0.1:9000/$1 [P,L]
|
||||
</VirtualHost>
|
8
config/vhosts/default.conf
Normal file
8
config/vhosts/default.conf
Normal file
@ -0,0 +1,8 @@
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot "/var/www/html"
|
||||
ServerName localhost
|
||||
ServerAdmin kishan@kinesis.games
|
||||
<Directory "/var/www/html/">
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
</VirtualHost>
|
@ -10,14 +10,16 @@ services:
|
||||
- "${HTTP_PORT}:80"
|
||||
- "${HTTPS_PORT}:443"
|
||||
- "${REACT_PORT}:3000"
|
||||
- "${CODE_SERVER_PORT}:8080"
|
||||
- "${API_PORT}:20000"
|
||||
- "${WS_PORT}:21000"
|
||||
- "${CODE_SERVER_PORT}:9000"
|
||||
- "${MISC_PORT}:8080"
|
||||
- "${MISC_PORT}:8888"
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
- ${CODE_SERVER_CONFIG-./config/code-server.yml}:/root/.config/code-server/config.yaml
|
||||
- ${VHOST_DIR-./config/vhosts}:/etc/apache2/sites-enabled
|
||||
tty: true
|
||||
db:
|
||||
image: 'mongo'
|
||||
container_name: '${PROJECT_NAME}-db'
|
||||
|
Loading…
x
Reference in New Issue
Block a user