2019-10-07 00:24:57 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
silverstripe:
|
2022-03-23 09:01:48 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: web.Dockerfile
|
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
|
2019-10-07 00:24:57 +00:00
|
|
|
ports:
|
2021-05-12 09:20:13 +00:00
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
- 127.0.0.1:3000:3000
|
|
|
|
- 127.0.0.1:3001:3001
|
|
|
|
- 127.0.0.1:9003:9003
|
2021-05-10 23:10:12 +00:00
|
|
|
working_dir: /shared-workspaces/mantra
|
2019-10-07 00:24:57 +00:00
|
|
|
volumes:
|
2021-05-10 23:10:12 +00:00
|
|
|
- ..:/shared-workspaces/mantra
|
|
|
|
- main-node:/shared-workspaces/mantra/node_modules/
|
|
|
|
- main-composer:/shared-workspaces/mantra/vendor/
|
2019-10-07 00:24:57 +00:00
|
|
|
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
|
2019-10-07 00:24:57 +00:00
|
|
|
volumes:
|
2021-05-10 20:40:36 +00:00
|
|
|
- mysql-data:/var/lib/mysql
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
main-node:
|
|
|
|
resources:
|
|
|
|
main-composer:
|
|
|
|
test-composer:
|
|
|
|
mysql-data:
|