-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·139 lines (136 loc) · 3.98 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
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
version: '3'
services:
frontend:
image: ghcr.io/gsoc2/gsoc2-frontend:latest
container_name: gsoc2-frontend
hostname: gsoc2-frontend
ports:
- "${FRONTEND_PORT}:80"
- "${FRONTEND_PORT_HTTPS}:443"
networks:
- gsoc2
environment:
- BACKEND_HOSTNAME=${BACKEND_HOSTNAME}
restart: unless-stopped
depends_on:
- backend
backend:
image: ghcr.io/gsoc2/gsoc2-backend:latest
container_name: gsoc2-backend
hostname: ${BACKEND_HOSTNAME}
# Here for debugging:
ports:
- "${BACKEND_PORT}:5001"
networks:
- gsoc2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${GSOC2_APP_HOTLOAD_LOCATION}:/gsoc2-apps:z
- ${GSOC2_FILE_LOCATION}:/gsoc2-files:z
env_file: .env
environment:
#- DOCKER_HOST=tcp://docker-socket-proxy:2375
- GSOC2_APP_HOTLOAD_FOLDER=/gsoc2-apps
- GSOC2_FILE_LOCATION=/gsoc2-files
restart: unless-stopped
orborus:
image: ghcr.io/gsoc2/gsoc2-orborus:latest
container_name: gsoc2-orborus
hostname: gsoc2-orborus
networks:
- gsoc2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GSOC2_APP_SDK_TIMEOUT=300
- GSOC2_ORBORUS_EXECUTION_CONCURRENCY=7 # The amount of concurrent executions Orborus can handle.
#- DOCKER_HOST=tcp://docker-socket-proxy:2375
- ENVIRONMENT_NAME=${ENVIRONMENT_NAME}
- BASE_URL=http://${OUTER_HOSTNAME}:5001
- DOCKER_API_VERSION=1.40
- GSOC2_BASE_IMAGE_NAME=${GSOC2_BASE_IMAGE_NAME}
- GSOC2_BASE_IMAGE_REGISTRY=${GSOC2_BASE_IMAGE_REGISTRY}
- GSOC2_BASE_IMAGE_TAG_SUFFIX=${GSOC2_BASE_IMAGE_TAG_SUFFIX}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTPS_PROXY}
- GSOC2_PASS_WORKER_PROXY=${GSOC2_PASS_WORKER_PROXY}
- GSOC2_PASS_APP_PROXY=${GSOC2_PASS_APP_PROXY}
- GSOC2_STATS_DISABLED=true
restart: unless-stopped
security_opt:
- seccomp:unconfined
opensearch:
image: opensearchproject/opensearch:2.11.0
hostname: gsoc2-opensearch
container_name: gsoc2-opensearch
environment:
- "OPENSEARCH_JAVA_OPTS=-Xms2048m -Xmx2048m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- bootstrap.memory_lock=true
- DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true
- cluster.initial_master_nodes=gsoc2-opensearch
- cluster.routing.allocation.disk.threshold_enabled=false
- cluster.name=gsoc2-cluster
- node.name=gsoc2-opensearch
- node.store.allow_mmap=false
- discovery.seed_hosts=gsoc2-opensearch
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ${DB_LOCATION}:/usr/share/opensearch/data:z
ports:
- 9200:9200
networks:
- gsoc2
restart: unless-stopped
#memcached:
# image: memcached:latest
# container_name: gsoc2-cache
# hostname: gsoc2-cache
# mem_limit: 1024m
# environment:
# - MEMCACHED_MEMORY=1024
# - MEMCACHED_MAX_CONNECTIONS=2500
# ports:
# - 11211:11211
#docker-socket-proxy:
# image: tecnativa/docker-socket-proxy
# container_name: docker-socket-proxy
# hostname: docker-socket-proxy
# privileged: true
# environment:
# - SERVICES=1
# - TASKS=1
# - NETWORKS=1
# - NODES=1
# - BUILD=1
# - IMAGES=1
# - GRPC=1
# - CONTAINERS=1
# - PLUGINS=1
# - SYSTEM=1
# - VOLUMES=1
# - INFO=1
# - DISTRIBUTION=1
# - POST=1
# - AUTH=1
# - SECRETS=1
# - SWARM=1
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# networks:
# - gsoc2
#
networks:
gsoc2:
driver: bridge
# uncomment to set MTU for swarm mode.
# MTU should be whatever is your host's preferred MTU is.
# Refer to this doc to figure out what your host's MTU is:
# https://gsoc2r.io/docs/troubleshooting#TLS_timeout_error/Timeout_Errors/EOF_Errors
# driver_opts:
# com.docker.network.driver.mtu: 1460