Created
January 30, 2015 10:53
-
-
Save kerin/1705b72c47add3ae78ea to your computer and use it in GitHub Desktop.
fig.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registry: | |
image: registry | |
ports: | |
- "5000:5000" | |
dbdata: | |
image: busybox | |
command: /bin/sh | |
volumes: | |
- /var/lib/postgresql/data | |
redisdata: | |
image: busybox | |
command: /bin/sh | |
volumes: | |
- /data | |
db: | |
build: app/Dockerfiles/postgres | |
links: | |
- dbdata | |
volumes_from: | |
- dbdata | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
redis: | |
image: redis | |
links: | |
- redisdata | |
volumes_from: | |
- redisdata | |
worker: | |
build: app | |
command: celery -A magiclantern worker -Q celery -l info --autoreload | |
volumes: | |
- ./app:/app | |
links: | |
- db | |
- redis | |
httpworker: | |
build: app | |
command: celery -A magiclantern worker -Q http -l info --autoreload | |
volumes: | |
- ./app:/app | |
links: | |
- db | |
- redis | |
app: | |
build: app | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- ./app:/app | |
ports: | |
- "8000:8000" | |
links: | |
- db | |
- redis | |
environment: | |
SERVICES_POSTGRES_USER: postgres | |
SERVICES_POSTGRES_PASSWORD: postgres | |
SERVICES_POSTGRES_HOST: db | |
SERVICES_POSTGRES_PORT: 5432 | |
SERVICES_REDIS_HOST: redis | |
KEYS_TMDB_API: | |
KEYS_DJANGO_SECRET: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment