mantra/.devcontainer/docker-compose.yml

28 lines
674 B
YAML

version: '3'
services:
silverstripe:
image: manuth/silverstripe-dev
env_file: devcontainer.env
environment:
- SS_ENVIRONMENT_TYPE=dev
- SS_BASE_URL=http://localhost:8080
- SS_DATABASE_CLASS=MySQLPDODatabase
- SS_DATABASE_SERVER=db
- SS_DEFAULT_ADMIN_USERNAME=root
- SS_DEFAULT_ADMIN_PASSWORD=password
ports:
- 8080:80
- 3000:3000
- 3001:3001
- 9000:9000
volumes:
- ..:/vscode/src/mantra
- ../test/website:/var/www/html
db:
image: mysql:5
env_file: devcontainer.env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
- ./mysql-data:/var/lib/mysql