Skip to content

Instantly share code, notes, and snippets.

@fabienduhamel
Last active August 27, 2016 15:57
Show Gist options
  • Save fabienduhamel/ea827d543dcf418040faf681f0da227b to your computer and use it in GitHub Desktop.
Save fabienduhamel/ea827d543dcf418040faf681f0da227b to your computer and use it in GitHub Desktop.
Docker compose for symfony app
code:
image: debian:jessie
volumes:
- .:/var/www/html
mysql:
image: mysql
environment:
MYSQL_DATABASE: root
MYSQL_ROOT_PASSWORD: root
app:
image: iamluc/symfony
volumes_from:
- code
links:
- mysql
ports:
- 8000:80
#!/bin/bash
bin/console d:d:d --force --if-exists &&
bin/console d:d:c &&
bin/console d:s:u --force &&
bin/console d:f:l --no-interaction
#!/bin/bash
docker-compose run app bash bin/docker-reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment