Skip to content

Instantly share code, notes, and snippets.

@yymm
Created January 8, 2016 08:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yymm/16cf829939aeecc5132d to your computer and use it in GitHub Desktop.
Save yymm/16cf829939aeecc5132d to your computer and use it in GitHub Desktop.
for development
dev:
restart: always
build: .
ports:
- "5000:5000"
- "8080:8080"
- "8888:8888"
- "2222:22"
links:
- mysql
- redis
- postgres
- mongo
- memcached
volumes:
- ./data/works:/home/yymm/works
mysql:
restart: always
image: mysql
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
postgres:
restart: always
image: postgres
volumes:
- ./data/postgresql:/var/lib/postgresql/data
redis:
restart: always
image: redis
volumes:
- ./data/redis:/data
command: redis-server --appendonly yes
mongo:
restart: always
image: mongo
volumes:
- ./data/mongo:/data/db
memcached:
restart: always
image: memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment