Skip to content

Commit

Permalink
docker: add some more permanent volumes plus a tmpfs mount
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Jul 3, 2016
1 parent 45c2c73 commit b00ec57
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
version: '2'
services:

This comment has been minimized.

Copy link
@NuckChorris

NuckChorris Jul 3, 2016

Author Member

I love that this indentation was fucked up but apparently YAML didn't care

version: '2'

volumes:
postgres:
driver: local
node_modules:
driver: local

services:
# Database servers
postgres:
image: postgres:9.3
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis
elasticsearch:
Expand All @@ -26,6 +36,8 @@
volumes:
- ./server:/opt/hummingbird/server
environment:
DATABASE_URL: 'postgresql://postgres:mysecretpassword@postgres/'
REDIS_URL: 'redis://redis/1'
RAILS_ENV: development

# Sidekiq
Expand All @@ -39,7 +51,9 @@
volumes:
- ./client:/opt/hummingbird/client
- /opt/hummingbird/client/node_modules
- /opt/hummingbird/client/bower_components
tmpfs:
- /opt/coachnite/client/tmp

This comment has been minimized.

Copy link
@trmcnvn

trmcnvn Jul 3, 2016

Contributor

🏈

This comment has been minimized.

Copy link
@NuckChorris

NuckChorris Jul 3, 2016

Author Member

You're Australian, you don't even know what 🏈 means. You think it means ⚽

This comment has been minimized.

Copy link
@trmcnvn

trmcnvn Jul 3, 2016

Contributor

It does. 🎤 ⬇️

environment:
EMBER_ENV: development
ports:
- "57777:57777"
ports: ['57777:57777']

0 comments on commit b00ec57

Please sign in to comment.