https://github.com/ferror/symfony-image
https://github.com/ferror/symfony-image
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferror/symfony-image
- Owner: Ferror
- Created: 2021-01-18T19:28:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-25T07:50:51.000Z (about 4 years ago)
- Last Synced: 2025-11-15T23:03:49.549Z (4 months ago)
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# symfony-image
## Docker sizes
| Image | Size |
| ----- | ---- |
| PHP 7.4 |  |
| PHP 8.0 |  |
| PHP 8.1 |  |
| GRPC |  |
| DEV |  |
## Use Case
### Docker Compose
```dockerfile
services:
traefik:
image: traefik:2.3
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
ferror:
ipv4_address: 192.168.10.2
symfony:
image: ferror/symfony-image:{IMAGE_VERSION}
command: ["make", "run"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.symfony.rule=Host(`symfony.malcherczyk.localhost`)"
volumes:
- ./:/app:delegated
depends_on:
- traefik
networks:
- ferror
networks:
ferror:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.10.0/24
```
### Makefile
```makefile
run:
composer install --no-interaction --prefer-dist
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
```
## Development
### Build Dockerfile Image
`docker build -t docker-name .`
### Get into the container
`docker run -i -t docker-name`
Badges powered by [Badgen](https://badgen.net) - so if they fail - you know where to go