initial creation
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: 'postgres:9.5'
|
||||
env_file:
|
||||
- '.env'
|
||||
volumes:
|
||||
- 'postgres:/var/lib/postgresql/data'
|
||||
ports:
|
||||
- '5432:5432'
|
||||
|
||||
redis:
|
||||
image: 'redis:3.0-alpine'
|
||||
command: redis-server --requirepass devpassword
|
||||
volumes:
|
||||
- 'redis:/var/lib/redis/data'
|
||||
ports:
|
||||
- '6379:6379'
|
||||
|
||||
website:
|
||||
build: .
|
||||
command: >
|
||||
gunicorn -c "python:config.gunicorn" --reload "snakeeyes.app:create_app()"
|
||||
env_file:
|
||||
- '.env'
|
||||
volumes:
|
||||
- '.:/snakeeyes'
|
||||
ports:
|
||||
- '8000:8000'
|
||||
|
||||
celery:
|
||||
build: .
|
||||
command: celery worker -B -l info -A snakeeyes.blueprints.contact.tasks
|
||||
env_file:
|
||||
- '.env'
|
||||
volumes:
|
||||
- '.:/snakeeyes'
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
redis:
|
||||
Reference in New Issue
Block a user