-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
151 lines (142 loc) · 3.41 KB
/
docker-compose.example.yml
File metadata and controls
151 lines (142 loc) · 3.41 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: "3.0"
networks:
codeserver_net:
external:
true
x-code-server-common:
&code-server-common
image: csplatform-env/py-jdk-8:latest
sysctls:
&code-server-common-sysctls
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv4.tcp_keepalive_time=60
- net.ipv4.tcp_keepalive_intvl=10
- net.ipv4.tcp_keepalive_probes=5
build:
context: .
dockerfile: Dockerfile.full
environment:
&code-server-common-env
TZ: Europe/Istanbul
DEFAULT_WORKSPACE: /config/workspace
SUDO_PASSWORD: admin
expose:
&code-server-common-expose
- 8443
- 80
- 443
- 3000
- 5000
- 8000
- 8080
- 8081
- 8082
- 9000
restart: unless-stopped
mem_limit: 8192m
cpus: 4
services:
code-server-proxy:
image: code-server-proxy:latest
container_name: code-server-proxy
sysctls: *code-server-common-sysctls
build:
context: ./proxy-backend
dockerfile: Dockerfile
args:
- CMD_PATH=cmd/server
- APP_NAME=server
- GIT_SHA=manual
hostname: localhost
working_dir: /app
stdin_open: true
user: root
networks:
codeserver_net:
ipv4_address: 172.71.0.2
restart: unless-stopped
volumes:
- ./proxy-backend/.env/app/.env
command: ./server -config .env
ports:
- 1080:1080
code-server-agent:
image: code-server-agent:latest
container_name: code-server-agent
sysctls: *code-server-common-sysctls
build:
context: ./agent
dockerfile: Dockerfile
args:
- CMD_PATH=cmd/server
- APP_NAME=server
- GIT_SHA=manual
hostname: localhost
working_dir: /app
stdin_open: true
user: root
networks:
codeserver_net:
ipv4_address: 172.71.0.150
restart: unless-stopped
volumes:
- ./agent/config.yaml:/app/config.yaml
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3033:3033
code-server-redis:
image: redis:8.2.1
container_name: code-server-redis
user: root
sysctls:
net.core.somaxconn: "65536"
command: redis-server --requirepass password --save 60 1 --loglevel warning --tcp-backlog 65536 --maxmemory 8000000000
restart: always
expose:
- 6379
networks:
codeserver_net:
ipv4_address: 172.71.0.230
mem_limit: 12288m
cpus: 4
code-server-redis-insight:
image: redis/redisinsight:2.70.1
container_name: code-server-redis-insight
restart: always
environment:
RI_APP_PORT: "5540"
RI_APP_HOST: 0.0.0.0
RI_PROXY_PATH: "/redisinsight/ui"
RI_LOG_LEVEL: "error"
RI_STDOUT_LOGGER: "true"
RI_DATABASE_MANAGEMENT: "false"
RI_REDIS_HOST0: "code-server-redis"
RI_REDIS_PORT0: 6379
RI_REDIS_USERNAME0: "default"
RI_REDIS_PASSWORD0: "password"
RI_REDIS_ALIAS0: "Cache"
RI_REDIS_TLS0: "FALSE"
networks:
codeserver_net:
ipv4_address: 172.71.0.231
expose:
- 5540
ports:
- 5540:5540
depends_on:
- code-server-redis
mem_limit: 12228m
cpus: 4
code-server-ctolon:
<<: *code-server-common
container_name: code-server-ctolon
sysctls: *code-server-common-sysctls
networks:
codeserver_net:
ipv4_address: 172.71.0.3
environment:
<<: *code-server-common-env
PUID: 1000
PGID: 1000
expose: *code-server-common-expose