Files
opensourcepos/docker-compose.test.yml
jekkos 6a108866f5 Remove volume from docker-compose test file (#616)
Update docker-cloud to mount init script directly
2016-06-28 19:25:50 +02:00

33 lines
784 B
YAML

version: '2'
services:
test:
build:
context: .
dockerfile: Dockerfile.test
php:
build:
context: .
dockerfile: Dockerfile
links:
- mysql
ports:
- "80:80"
environment:
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
- MYSQL_HOST_NAME=mysql
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=pointofsale
- MYSQL_DATABASE=ospos
- MYSQL_USER=admin
- MYSQL_PASSWORD=pointofsale
ports:
- "3306:3306"
volumes:
- ./database/database.sql:/docker-entrypoint-initdb.d/database.sql