1
|
#-------------------------------------------------------------------------------------------------------------
|
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
4
|
#-------------------------------------------------------------------------------------------------------------
|
5
|
|
6
|
version: '3.2'
|
7
|
services:
|
8
|
# Update this to the name of the service you want to work with in your docker-compose.yml file
|
9
|
php-fpm:
|
10
|
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
|
11
|
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
|
12
|
# debugging) to execute as the user. Uncomment the next line if you want the entire
|
13
|
# container to run as this user instead. Note that, on Linux, you may need to
|
14
|
# ensure the UID and GID of the container user you create matches your local user.
|
15
|
# See https://aka.ms/vscode-remote/containers/non-root for details.
|
16
|
#
|
17
|
# user: vscode
|
18
|
|
19
|
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
|
20
|
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
|
21
|
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
|
22
|
# array). The sample below assumes your primary file is in the root of your project.
|
23
|
#
|
24
|
# build:
|
25
|
# context: .
|
26
|
# dockerfile: .devcontainer/Dockerfile
|
27
|
|
28
|
volumes:
|
29
|
# Update this to wherever you want VS Code to mount the folder of your project
|
30
|
- .:/workspace:cached
|
31
|
|
32
|
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details.
|
33
|
# - /var/run/docker.sock:/var/run/docker.sock
|
34
|
|
35
|
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
|
36
|
# cap_add:
|
37
|
# - SYS_PTRACE
|
38
|
# security_opt:
|
39
|
# - seccomp:unconfined
|
40
|
|
41
|
# Overrides default command so things don't shut down after the process ends.
|
42
|
command: /bin/sh -c "while sleep 1000; do :; done"
|
43
|
|