Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 448 Bytes
version: '2'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: example
MYSQL_USER: example
MYSQL_PASSWORD: example
app:
depends_on:
- db
image: custom_ruby
command: tail -f /dev/null
environment:
EXAMPLE_DB_HOST: db:3306
EXAMPLE_DB_PASSWORD: wordpress
volumes:
db_data: