code-server: v4.104.2 Code: 1.104.2
940
This is a fork from the docker image made by - LinuxServer.io Team - which can be find here - code-server
Important Note - Before running the YAML:
---
version: '3.8'
services:
#. MariaDB Service
mariadb-laravel-service:
image: ghcr.io/linuxserver/mariadb:latest
container_name: mariadb-laravel
environment:
- PUID=1000
- PGID=1000
#upd-me - TZ=my-continent/my-location-(town)
#upd-me - MYSQL_ROOT_PASSWORD=my-root-pass
#upd-me - MYSQL_DATABASE=my-db-name
#upd-me - MYSQL_USER=my-db-user
#upd-me - MYSQL_PASSWORD=my-db-pass
volumes:
#upd-me - db-data:/var/lib/mysql # this must be updated before running the yaml file
networks:
- network
restart: unless-stopped
#. Code-Server Service
code-server-service:
image: dandinuro/code-server:latest
container_name: code-server-app
environment:
- PUID=1000
- PGID=1000
#upd-me - TZ=my-continent/my-location-(town)
#upd-me - PASSWORD=my-pass-for-code-server-browser-login #optional
#upd-me - SUDO_PASSWORD=my-sudo-pass #optional
#upd-me - PROXY_DOMAIN=my-subdomain.example.com #optional
#upd-me - APP_URL=https://my-subdomain.example.com
- DEFAULT_WORKSPACE=/home/skipper/.workspace #optional
volumes:
- config-data:/home/skipper
- www-data:/var/www/html
ports:
#upd-me - my-local-port-2:80/tcp # web-server
#upd-me - my-local-port-1:8080/tcp # code-server
#upd-me - my-local-port-1:8000/tcp # Laravel from php artisan serve
networks:
- network
depends_on:
- mariadb-laravel-service
restart: unless-stopped
#. volumes definition
volumes:
config-data:
driver: local
driver_opts:
type: none
#upd-me device: /home/my_user/my_path/code-server/config
o: bind
db-data:
driver: local
driver_opts:
type: none
#upd-me device: /home/my_user/my_path/code-server/db-data
o: bind
www-data:
driver: local
driver_opts:
type: none
#upd-me device: /home/my_user/my_path/code-server/html
o: bind
#. network definition
networks:
network:
driver: bridge
su skipper // skipper is the non-root user that will be created automaticallylaravel new my-laravel-project <VirtualHost *:80>
DocumentRoot /var/www/html/my-laravel-project/public
ServerName sub-domain.example.com
<Directory /var/www/html/my-laravel-project/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</VirtualHost>
a2enmod rewriteservice apache2 stopservice apache2 start{
"workbench.colorTheme": "GitHub Dark",
"workbench.iconTheme": "vscode-icons",
"editor.minimap.enabled": false,
"files.autoSave": "onFocusChange",
"editor.formatOnSave": true,
"php.suggest.basic": false,
"php.validate.enable": false,
"editor.fontFamily": "'Fira Code'",
"editor.fontLigatures": true,
"workbench.editor.enablePreview": false,
"editor.wordWrap": "on",
"browse-lite.chromeExecutable": "/usr/bin/google-chrome",
"browse-lite.startUrl": "https://sub-domain.example.com/"
}
Content type
Image
Digest
sha256:3b8b4866d…
Size
884.1 MB
Last updated
12 months ago
docker pull dandinuro/code-server