Files
docker-docs/docker-compose.yml
David Lawrence 3cf000a852 use named volume and fix env service names
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-02-05 17:40:23 -08:00

32 lines
793 B
YAML

notaryserver:
build: .
dockerfile: server.Dockerfile
links:
- notarymysql
- notarysigner
environment:
- SERVICE_NAME=notaryserver
ports:
- "8080"
- "4443:4443"
entrypoint: /bin/bash
command: -c "./migrations/migrate.sh && notary-server -config=fixtures/server-config.json"
notarysigner:
build: .
dockerfile: signer.Dockerfile
links:
- notarymysql
environment:
- SERVICE_NAME=notarysigner
entrypoint: /bin/bash
command: -c "./migrations/migrate.sh && notary-signer -config=fixtures/signer-config.json"
notarymysql:
volumes:
- ./notarymysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- notarydata:/var/lib/mysql
image: mariadb:10.1.10
ports:
- "3306:3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD="true"