Skip to content

Commit

Permalink
Merge pull request #66 from pschiffe/master
Browse files Browse the repository at this point in the history
Added ansible 2.1 demo
  • Loading branch information
Peter Schiffer committed May 31, 2016
2 parents d48c440 + a80f7b3 commit 4de90a2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ansible-2.1-demo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
web:
build: .
ports:
- "8000:8000"
volumes:
- ./channels-example/:/opt/app/channels-example/
links:
- db
- redis
environment:
- DATABASE_URL=postgres://user:openhouse2016@db:5432/chat
- REDIS_URL=redis://redis:6379/1
db:
image: praiskup/postgresql:APIv1.0.1-fedora23
# volumes:
# - ./db:/var/lib/pgsql/data
environment:
- POSTGRESQL_DATABASE=chat
- POSTGRESQL_USER=user
- POSTGRESQL_PASSWORD=openhouse2016
- POSTGRESQL_CONTAINER_OPTS=assert_external_data = false
worker:
build: .
environment:
- DATABASE_URL=postgres://user:openhouse2016@db:5432/chat
- REDIS_URL=redis://redis:6379/1
links:
- db
- redis
volumes:
- ./channels-example/:/opt/app/channels-example/
command: python /opt/app/channels-example/manage.py runworker -v3
redis:
image: redis

8 changes: 8 additions & 0 deletions ansible-2.1-demo/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: Deploy the service
hosts: localhost
connection: local
gather_facts: no
tasks:
- docker_service:
project_src: /home/ttomecek/g/open-house-2016-demo/
state: present

0 comments on commit 4de90a2

Please sign in to comment.