Skip to content

wiosna-dev/forest-wardens

Repository files navigation

Docker Swarm R&D project

Project setup

secrets:

  • GHCR_USERNAME
  • GHCR_TOKEN - scope write:packages
  • GHCR_READ_ONLY_TOKEN - scope read:packages
  • VPN_CONFIG_FILE
  • VPN_AUTH_FILE
  • SSH_KEY_FILE

/etc/hosts:

1.156.0.1 forest-wardens.local

Building image locally

Base image with PHP 8.2

docker build -t localhost:5000/php-82-swarm -f ./.docker/8.2/Dockerfile ./.docker/8.2

Pushing base image to local registry

docker push localhost:5000/php-82-swarm

Base image with PHP 8.2 and Xdebug

docker build -t localhost:5000/php-82-swarm-xdebug -f ./.docker/8.2-xdebug/Dockerfile ./.docker/8.2-xdebug

Pushing development image to local registry

docker push localhost:5000/php-82-swarm-xdebug

Disable Xdebug in CLI

export XDEBUG_MODE=off XDEBUG_SESSION=0

Logging in into the shell

As deployment user

docker compose exec php82 bash

As root user

docker compose exec -u 0 php82 bash

About

R&D project based on OL9 and Symfony 6.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors