-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.example.yml
More file actions
62 lines (56 loc) · 1.96 KB
/
docker-compose.override.example.yml
File metadata and controls
62 lines (56 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# This file provides a way to override personal configuration options along
# with the main Compose file for local development. Docker will merge these
# definitions with the main file.
#
# Copy: docker-compose.override.example.yml
# ..to: docker-compose.override.yml
#
# ...and adjust services below as needed. The examples shown below are not
# exhaustive.
#
# Some sections of this file facilitate alignment of users and groups when
# mounting code as container volumes. These values first read from the UID
# and GID environment variables if available and fall back to "501" as the
# sensible default for MacOS contributors (the folks that will most likely
# need to override user/group here). Linux users typically have a UID=1000
# and GID=1000. Since these are image defaults, we do not need to override
# these unless we're using a system where our account doesn't have UID/GID
# of 1000.
#
# To assign the UID and GID environment variables automatically, run:
#
# export UID=$(id -u) GID=$(id -g)
#
# Add the above command to a profile script to avoid the need to run it in
# every session. Some shells set these variables in the scope of the shell
# process (not the environment). We still need to export the values to the
# environment to access those here. For example, Bash sets UID, and we can
# export it directly:
#
# export UID GID=$(id -g)
#
# Alternatively, add the UID and GID variables to your .env file.
#
name: tdei-workspaces
x-node-dev-base:
&node-dev-base
# Build the container so that the runtime user matches the local user.
build:
args:
APP_UID: ${UID:-501}
APP_GID: ${GID:-501}
# Run the container as your local user so that file permissions match.
user: "${UID:-501}:${GID:-501}"
services:
frontend:
<<: *node-dev-base
rapid:
<<: *node-dev-base
pathways-editor:
<<: *node-dev-base
tasks-backend:
# Build the container as your local user so that permissions match.
build:
args:
APP_UID: ${UID:-501}