-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 2.58 KB
/
docker-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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.9'
services:
codeCommentRemoverUi:
image: 'mindde/code_comment_remover-ui:v0.0.1'
ports:
- '3000:3000' # main entry to the App
network_mode: "host" # @learm-simple: https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach https://stackoverflow.com/questions/50278632/what-does-localhost-means-inside-a-docker-container
# container_name: 'codeCommentRemoverUi'
jsParserSub:
image: 'mindde/jsparsersub:v0.0.1'
ports:
- '127.0.0.1:14080:14080'
network_mode: "host"
# container_name: 'jsParserSub'
javaParserSub:
image: 'mindde/javaparsersub:v0.0.1'
ports:
- '127.0.0.1:18082:18082'
network_mode: "host"
# container_name: 'javaParserSub'
watchtower:
# image: 'containrrr/watchtower:arm64v8-1.7.1'
image: 'containrrr/watchtower@sha256:f9086bfda061100361fc2bacf069585678d760d705cf390918ccdbda8a00980b' # https://hub.docker.com/layers/containrrr/watchtower/amd64-1.7.1/images/sha256-f9086bfda061100361fc2bacf069585678d760d705cf390918ccdbda8a00980b?context=explore
command: '--schedule "0 0 4 * * *" --http-api-update --cleanup'
# TODO secret should be stored in .env ...
environment:
- WATCHTOWER_HTTP_API_TOKEN=tokenVal_WATCHTOWER_HTTP_API_TOKEN_toBeSentFromJenkins
# DOCKER_HOST=unix:///var/run/docker.sock
# WATCHTOWER_SCHEDULE=0 0 4 * * * # aga quote pb dk
# WATCHTOWER_HTTP_API_UPDATE=true
# WATCHTOWER_LABEL_ENABLE=true
# WATCHTOWER_SCOPE=thisScope
# WATCHTOWER_DISABLE_CONTAINERS= , , ,
# WATCHTOWER_INCLUDE_STOPPED=false
# WATCHTOWER_REVIVE_STOPPED=false
# WATCHTOWER_REMOVE_VOLUMES=false?
# --health-check
# WATCHTOWER_DEBUG=true
# WATCHTOWER_LOG_LEVEL=info
# WATCHTOWER_HTTP_API_METRICS=true
# https://containrrr.dev/watchtower/arguments/
# labels:
# - "com.centurylinklabs.watchtower.enable=false"
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
restart: 'unless-stopped' # aga need better policy -- dont bindly restart - but need start up at system boot
# // TODO restart docker or not (ec2 restart; jenkins restart; dk other cases too)
# TODO @need_check network_mode
# @que: docker-compose up twice seems multi create
# @: if you debug by going inside the docker container & modify things. then DockerWatchtower seems will not detect that change & wont pull the original image to overwrite the debug modification. h
ports:
- '8686:8080' # call watchtower to pull new docker image
container_name: 'watchtower'