-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.37 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
services:
base:
container_name: dev-container-base
image: dev-container-base:latest
profiles: ["build-only"]
build:
context: .
dockerfile: environments/base/Dockerfile
args:
PUID: ${PUID:?You must set PUID in .env file}
PGID: ${PGID:?You must set PGID in .env file}
DEV_USER: ${DEV_USER:-vscode}
env_file:
- .env
dev-container:
container_name: dev-container-${DEV_ENV:-base}
build:
context: .
dockerfile: environments/${DEV_ENV:-base}/Dockerfile
args:
PUID: ${PUID:?You must set PUID in .env file}
PGID: ${PGID:?You must set PGID in .env file}
DEV_USER: ${DEV_USER:-vscode}
env_file:
- .env
environment:
TZ: ${TZ:-UTC}
SSH_PORT: ${SSH_PORT:-2222}
DEV_ENV: ${DEV_ENV:-base}
RECURSIVE_CHOWN: ${RECURSIVE_CHOWN:-false}
ports:
- "${SSH_PORT:-2222}:22"
volumes:
- ./workspace:/home/${DEV_USER}/workspace:rw,delegated
- dev_home:/home/${DEV_USER}
# mount configs for different IDEs, or specific environments
- ./configs/common:/etc/dev/common
- ./configs/env-specific/${DEV_ENV:-base}:/etc/dev/env-specific
- ide_backend_cache:/home/${DEV_USER}/.cache/JetBrains/RemoteDev/dist
volumes:
dev_home:
name: dev_home_${DEV_ENV:-base}
ide_backend_cache:
name: ide_backend_cache_${DEV_ENV:-base}