# contao-docker-test

#Installation:

# Some important information

# Some helpful docker commands:
- `docker-compose up -d`
- `docker-compose down`
- `docker exec -it tb-con-tbuddy /bin/bash`
- `docker build -t tb-con-tbuddy .`
- `docker image rm tb_spt_image`
- `docker ps`
- `docker ps --all`
- `docker container stop $(docker container ls -aq)`
- `docker container rm $(docker container ls -aq)`
- `docker rmi $(docker images -q)`
- `docker stop spt_tbuddy && docker rm spt_tbuddy && docker rmi spt_tb && docker-compose up -d`

# Some helpful other commands:
- Restart Apache within the container
  - Go into docker container `docker exec -it skeleton-php /bin/bash`
  - Apache restart `sudo /etc/init.d/apache2 reload`

# Clean restart of Docker instance
1.  Stop the container(s) using the following command: `docker-compose down`
2.  Delete all containers using the following command: `docker rm -f $(docker ps -a -q)`
3.  Delete all volumes using the following command: `docker volume rm $(docker volume ls -q)`
4.  Restart the containers using the following command: `docker-compose up -d`


# INSTALL MAGENTO
- docker Container starten und in den Container wechseln
- composer install
- "bin/magento install" Befehl