https://github.com/sylvainmetayer/docker-betisier-tp
Just a repository to play with docker and Traefik from an (old) existing project
https://github.com/sylvainmetayer/docker-betisier-tp
docker docker-compose php7 traefik
Last synced: about 2 months ago
JSON representation
Just a repository to play with docker and Traefik from an (old) existing project
- Host: GitHub
- URL: https://github.com/sylvainmetayer/docker-betisier-tp
- Owner: sylvainmetayer
- Created: 2018-08-19T16:36:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-15T07:47:45.000Z (about 1 year ago)
- Last Synced: 2025-04-15T08:34:57.267Z (about 1 year ago)
- Topics: docker, docker-compose, php7, traefik
- Language: PHP
- Homepage: https://github.com/sylvainmetayer/Betisier-TP
- Size: 14.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker - Betisier TP
[](https://hub.docker.com/r/sylvainmetayer/betisier-php/)
[](https://hub.docker.com/r/sylvainmetayer/betisier-mysql/)
## Description
Just a repository to play with docker and [Traefik](https://traefik.io/) from an [(old) existing project](https://github.com/sylvainmetayer/Betisier-TP)
## Development
1. Edit database configuration
```bash
cp db.env.example db.env
vim db.env
```
2. Edit application configuration according to your database configuration
```bash
cp conf/config.inc.php.example conf/config.inc.php
vim conf/config.inc.php
```
3. Run it
```bash
docker-compose -f dev.yml up -d
```
The site is now available at [http://localhost:8080](http://localhost:8080)
## Actions on containers
- Restart
```bash
docker-compose -f dev.yml restart
```
- Stop containers
```bash
docker-compose -f dev.yml stop
```
- Remove containers
```bash
docker-compose -f dev.yml down
```
- See logs
```bash
docker logs betisier_php
docker logs betisier_db
```
> Add `-f` at the end of the command to see live changes
## Deployement
See the [Wiki](https://github.com/sylvainmetayer/docker-betisier-tp/wiki/) for additional information.