-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (40 loc) · 1.36 KB
/
compose.yaml
File metadata and controls
46 lines (40 loc) · 1.36 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:
airlock:
#===== Base container ======#
build: . # - dockerfile location
image: airlock #
user: dev #
hostname: airlock # - For a cleaner prompt
working_dir: /airlock #
# #
# resources #
mem_limit: 16g #
mem_reservation: 12g # - Soft limit - Docker will try to keep it here
memswap_limit: 20g # - mem + swap total (gives 4g swap headroom)
oom_kill_disable: false # - Better to kill a process than freeze
stop_grace_period: 30s #
init: true # - Run tini - reaps zombie processes, helps with orphans
# #
# terminal #
stdin_open: true # - Keep STDIN open
tty: true # - pseudo-TTY
#===========================#
me:
extends:
service: airlock
container_name: me.airlock
hostname: me.airlock
ports:
- "3020-3035:3000-3015"
profiles:
- me
work:
extends:
service: airlock
container_name: work.airlock
hostname: work.airlock
ports: # container:host port mappings
- "3000-3015:3000-3015" # App ports range
- "9229:9229" # Node debugger
profiles:
- work