Skip to content

Instantly share code, notes, and snippets.

@redmoses
Last active March 5, 2016 20:03
Show Gist options
  • Save redmoses/2d1cbc57c1342c8c165b to your computer and use it in GitHub Desktop.
Save redmoses/2d1cbc57c1342c8c165b to your computer and use it in GitHub Desktop.
Flaskshell docker-compose file
nginx:
image: nginx:latest
container_name: flaskshell_nginx
ports:
- "80:80"
volumes_from:
- app
links:
- app:app
volumes:
- ./config/nginx:/etc/nginx/conf.d
app:
build: .
container_name: flaskshell
expose:
- "5000"
volumes:
- ./src:/app/flaskshell/src
- ./logs:/app/flaskshell/logs
- ./config:/app/flaskshell/config
links:
- mysql:mysql
mysql:
image: mysql:5.6
container_name: flaskshell_mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'flaskshell'
MYSQL_USER: 'flaskuser'
MYSQL_PASSWORD: 'flask123'
volumes:
- /var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment