mantra/.devcontainer/docker-compose.yml

39 lines
949 B
YAML

version: '3'
services:
silverstripe:
build:
context: .
dockerfile: web.Dockerfile
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:
- 127.0.0.1:8080:80
- 127.0.0.1:3000:3000
- 127.0.0.1:3001:3001
- 127.0.0.1:9003:9003
working_dir: /shared-workspaces/mantra
volumes:
- ..:/shared-workspaces/mantra
- main-node:/shared-workspaces/mantra/node_modules/
- main-composer:/shared-workspaces/mantra/vendor/
db:
image: mysql:5
env_file: devcontainer.env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
- mysql-data:/var/lib/mysql
volumes:
main-node:
resources:
main-composer:
test-composer:
mysql-data: