mantra/.devcontainer/docker-compose.yml

38 lines
883 B
YAML
Raw Normal View History

version: '3'
services:
silverstripe:
image: manuth/silverstripe-dev
2019-10-07 12:20:25 +00:00
env_file: devcontainer.env
2021-05-10 20:34:21 +00:00
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
2021-05-10 23:59:52 +00:00
- 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
2019-10-07 12:20:25 +00:00
env_file: devcontainer.env
2021-05-10 20:34:21 +00:00
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes:
2021-05-10 20:40:36 +00:00
- mysql-data:/var/lib/mysql
volumes:
main-node:
resources:
main-composer:
test-composer:
mysql-data: