-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
36 lines (34 loc) · 813 Bytes
/
compose.yml
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
x-env_tty: &env_tty
env_file:
- .env
tty: true
x-bind_mount: &bind_mount
volumes:
- type: bind
source: .
target: /home/${HOST_USER:-$LOGNAME}/app
user: ${HOST_USER:-$LOGNAME}
working_dir: /home/${HOST_USER:-$LOGNAME}/app
platform: linux/amd64
services:
app:
container_name: nb_app
build:
context: .
dockerfile: Dockerfile
args:
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
HOST_USER: ${HOST_USER:-$LOGNAME}
HOST_GROUP: ${HOST_GROUP:-$LOGNAME}
TZ: ${TZ:-Etc/UTC}
<<: [*bind_mount, *env_tty]
entrypoint: zsh
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]