Skip to content

Instantly share code, notes, and snippets.

@brylor
Created August 17, 2016 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brylor/b68f46f9f58ab1899ae7bb2a87130a2b to your computer and use it in GitHub Desktop.
Save brylor/b68f46f9f58ab1899ae7bb2a87130a2b to your computer and use it in GitHub Desktop.
db:
image: mysql:5.6
environment:
MYSQL_DATABASE: ralph_ng
MYSQL_ROOT_PASSWORD: ralph_ng
MYSQL_USER: ralph_ng
MYSQL_PASSWORD: ralph_ng
volumes_from:
- data
web:
build: ralph
restart: always
ports:
- "8000"
volumes_from:
- data
links:
- db:db
- redis:redis
env_file:
- ./ralph/contrib/ralph.env
command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi
nginx:
image: nginx
restart: always
ports:
- "880:80"
links:
- web:web
volumes:
- ./ralph/contrib/ralph.conf.nginx:/etc/nginx/conf.d/default.conf
volumes_from:
- web
data:
image: mysql:5.6
volumes:
- /opt/static
- /opt/media
- /var/lib/mysql
command: /bin/true
redis:
image: redis:3.0
restart: always
ports:
- "6379"
inkpy:
image: ar4s/inkpy_jinja:latest
restart: always
links:
- redis:redis
env_file:
- ./ralph/contrib/ralph.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment