-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 918 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (25 loc) · 918 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
# Build the image with a user matching the host when provided; defaults keep compatibility
UID: ${UID:-1000}
GID: ${GID:-1000}
image: minimal-python-downloader:latest
container_name: minimal-python-downloader
working_dir: /workspace
volumes:
- ./:/workspace
environment:
- PAIR_USERNAME=${PAIR_USERNAME}
- PAIR_PASSWORD=${PAIR_PASSWORD}
- HOME=/workspace
# By default, run an interactive shell; override with `command:` or `docker compose run` args
tty: true
stdin_open: true
# Run as the same user as the host when provided, else fall back to root to avoid permission issues on bind mounts
user: "${UID:-0}:${GID:-0}"
# Network is default bridge with internet access; can be overridden
# networks: [default]