kitsune/.devcontainer/docker-compose.yml

40 строки
1.6 KiB
YAML

#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
version: '3.8'
services:
# Update this to the name of the service you want to work with in your docker-compose.yml file
web:
# You may want to add a non-root user to your Dockerfile and uncomment the line below
# to cause all processes to run as this user. Once present, you can also simply
# use the "remoteUser" property in devcontainer.json if you just want VS Code and
# its sub-processes (terminals, tasks, debugging) to execute as the user. On Linux,
# you may need to ensure the UID and GID of the container user you create matches your
# local user. See https://aka.ms/vscode-remote/containers/non-root for details.
# user: kitsune
# Uncomment if you want to add a different Dockerfile in the .devcontainer folder
# build:
# context: .
# dockerfile: Dockerfile
# Uncomment if you want to expose any additional ports. The snippet below exposes port 3000.
ports:
- 3050:3050
- 3000:3000 # browser-sync
- 3001:3001 # browser-sync ui
volumes:
- vscode-home:/home/kitsune
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
environment:
- EDITOR=code --wait
volumes:
vscode-home: