Move devcontainer settings to devcontainer.json

This commit is contained in:
Lev Vereshchagin
2021-12-17 12:43:48 +03:00
parent 47f216af83
commit cea7548619
3 changed files with 10 additions and 17 deletions

View File

@@ -3,7 +3,8 @@
"appPort": [8000, 9000, 6787], "appPort": [8000, 9000, 6787],
"remoteUser": "frappe", "remoteUser": "frappe",
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash" "terminal.integrated.shell.linux": "/bin/bash",
"debug.node.autoAttach": "disabled"
}, },
"dockerComposeFile": "./docker-compose.yml", "dockerComposeFile": "./docker-compose.yml",
"service": "frappe", "service": "frappe",

View File

@@ -8,22 +8,17 @@ services:
- --skip-character-set-client-handshake - --skip-character-set-client-handshake
- --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6 - --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
environment: environment:
- MYSQL_ROOT_PASSWORD=123 MYSQL_ROOT_PASSWORD: 123
- MYSQL_USER=root
# Sometimes db initialization takes longer than 10 seconds and site-creator goes away.
# Frappe doesn't use CONVERT_TZ() function that requires time zone info, so we can just skip it.
- MYSQL_INITDB_SKIP_TZINFO=1
volumes: volumes:
- mariadb-vol:/var/lib/mysql - mariadb-data:/var/lib/mysql
# Enable PostgreSQL only if you use it, see development/README.md for more information. # Enable PostgreSQL only if you use it, see development/README.md for more information.
# postgresql: # postgresql:
# image: postgres:11.8 # image: postgres:11.8
# restart: on-failure
# environment: # environment:
# - POSTGRES_PASSWORD=123 # POSTGRES_PASSWORD: 123
# volumes: # volumes:
# - postgresql-vol:/var/lib/postgresql/data # - postgresql-data:/var/lib/postgresql/data
redis-cache: redis-cache:
image: redis:alpine image: redis:alpine
@@ -43,9 +38,9 @@ services:
- ..:/workspace:cached - ..:/workspace:cached
working_dir: /workspace/development working_dir: /workspace/development
ports: ports:
- "8000-8005:8000-8005" - 8000-8005:8000-8005
- "9000-9005:9000-9005" - 9000-9005:9000-9005
volumes: volumes:
mariadb-vol: mariadb-data:
postgresql-vol: postgresql-data:

View File

@@ -1,3 +0,0 @@
{
"debug.node.autoAttach": "disabled"
}