Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
/ visualize Public archive

A project in which I am first time using Drupal, Docker, Traefik, Vite.js and Github Actions deployed for the first time on a VPS server. A lot of those first times, huh? 🤯

Notifications You must be signed in to change notification settings

bronisMateusz/visualize

Repository files navigation

Drupal

Setup project

  1. Create .env based on .env.example.
  2. Start docker containers:
    • for prod: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
    • for local-dev: docker compose up -d
    • after changes to Dockerfile docker compose build is required to rebuild image
  3. Install composer dependencies: docker exec -it <drupal_container> composer install
  4. Import database (optional)

Start project

  • for prod: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
  • for local-dev: docker compose up -d

Stop project

docker compose down

List running containers

docker compose ps

Import db

docker exec -i <db_container> mysql -u<user> -p<pass> <database> < dump.sql

Drush

docker exec -it <drupal_container> vendor/bin/drush ...

Composer

docker exec -it <drupal_container> composer ...

About

A project in which I am first time using Drupal, Docker, Traefik, Vite.js and Github Actions deployed for the first time on a VPS server. A lot of those first times, huh? 🤯

Topics

Resources

Stars

Watchers

Forks