Skip to content

cuweb/cu-dockertown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carleton Dockertown

Prerequisites

Installation

  • Clone this repo, navigate to the folder containing the docker-compose.yml
  • Run docker-compose build
  • The initial build will take a bit of time, have a drink, you've earned it.

Once The Build Finishes

Using a terminal, navigate to the folder containing the docker-compose.yml file

Command Description
docker-compose up Bring up all services, composer install on cutheme / api
docker-compose up -d Same as above, but will run in background
docker-compose down Stop running containers (if you ran in background)

URLs

Running Commands On Running Containers

  • Once running, from the same directory as the docker-compose.yml
  • Command structure is docker-compose exec CONTAINER_NAME COMMAND

Example Commands:

  • MySQL Dump to Deskop docker-compose exec mysql mysqldump --all-databases --user=root --password=password > ~/Desktop/db.sql
  • PHP Aritsan Commands docker-compose exec backend php artisan migrate

SSH To A Container

  • docker-compose exec CONTAINER_NAME sh
  • docker-compose exec CONTAINER_NAME bash

DB Access Once Running

  • For TablePlus, find the connection in the _config/sql folder
  • Host: 127.0.0.1
  • Port: 3307
  • User: root
  • Pass: password

XDebug

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors