diff options
| author | mo <mokha@cisco.com> | 2017-04-19 21:14:33 -0600 |
|---|---|---|
| committer | mo <mokha@cisco.com> | 2017-04-19 21:14:33 -0600 |
| commit | 0b677e718dbe57796b79d546d02ffbd15ab5fc30 (patch) | |
| tree | 9d3716e3536edb5e6fc696040218701a225548c7 /docker-compose.yml | |
| parent | 438e481ca6749560e2277a4ae318b82d9f3b1c48 (diff) | |
add docker.
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..33d7bef3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +version: '2' +services: + web: + build: . + command: bundle exec foreman start web + ports: + - "3000:3000" + volumes: + - .:/app + links: + - redis + - db + depends_on: + - redis + - db + environment: + - REDIS_URL=redis://redis:6379/12 + - RAILS_LOG_TO_STDOUT=true + db: + image: postgres:latest + ports: + - "5432:5432" + volumes: + - ./db/data:/var/lib/postgresql/data + redis: + image: redis:latest + ports: + - "6379:6379" |
