Skip to content

Instantly share code, notes, and snippets.

@pfrayer
Created March 7, 2016 14:19
Show Gist options
  • Save pfrayer/048ae6aeeb0a67840361 to your computer and use it in GitHub Desktop.
Save pfrayer/048ae6aeeb0a67840361 to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
build: .
image: java-jersey-image
container_name: app-pierre
ports:
- 8080
links:
- database
database:
image: mysql:5.6
container_name: mysql-pierre
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=mydatabase
volumes:
- ./conf/data:/docker-entrypoint-initdb.d
ports:
- 3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment