Skip to content

Commit 033a05a

Browse files
authored
Merge pull request #1331 from Websoft9/update-openhands-71b7ecfc
Update openhands
2 parents 2baeee3 + d5cb92f commit 033a05a

File tree

3 files changed

+30
-72
lines changed

3 files changed

+30
-72
lines changed

apps/openhands/.env

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,22 @@
1-
W9_REPO=wordpress
2-
W9_DIST=community
3-
W9_VERSION=latest
4-
5-
W9_POWER_PASSWORD=1PrMxExC45LsCT
6-
7-
# Environments which for user settings when create application
8-
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
9-
W9_HTTP_PORT_SET=9001
10-
# W9_HTTPS_PORT_SET=9002
11-
# W9_DB_PORT_SET=3306
12-
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
14-
15-
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
16-
17-
W9_ID=openhands
18-
19-
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
20-
# Some container (e.g teleport) need HTTPS access, then need to set this pra
21-
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
1+
W9_REPO="docker.all-hands.dev/all-hands-ai/openhands"
2+
W9_DIST='community'
3+
W9_VERSION='0.28'
4+
W9_POWER_PASSWORD='!s7#uNFj!sHWKZKe'
5+
W9_HTTP_PORT_SET='9001'
6+
W9_ID='openhands'
7+
W9_HTTP_PORT=3000
238

249
W9_LOGIN_USER=admin
25-
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
26-
# this password can also use password file
2710
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
2811
W9_ADMIN_PATH="/wp-login"
29-
30-
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
32-
33-
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
34-
# If have protocols, should be set it in the APP's ENV
35-
W9_URL=internet_ip:$W9_HTTP_PORT_SET
36-
# modifies W9_URL on init when it is true
12+
W9_URL='internet_ip:$W9_HTTP_PORT_SET'
3713
W9_URL_REPLACE=true
38-
3914
W9_NETWORK=websoft9
4015

4116
#### ----------------------------------------------------------------------------------------- ####
4217

4318

44-
# Below environment is created by apphub
19+
# Below environment is created by this app:
4520

46-
#W9_NAME=""
47-
#W9_RCODE=""
21+
SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.28-nikolaik
22+
LOG_ALL_EVENTS=true

apps/openhands/docker-compose.yml

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,33 @@
1-
# image,docs: https://hub.docker.com/_/wordpress/
1+
# image,docs: https://docs.all-hands.dev/modules/usage/installation
22

33
services:
44

5-
wordpress:
5+
app:
66
image: $W9_REPO:$W9_VERSION
77
container_name: $W9_ID
8+
extra_hosts:
9+
host.docker.internal: host-gateway
810
restart: unless-stopped
9-
#This is for access host from container
10-
# extra_hosts: ["host.docker.internal:host-gateway"]
11-
# command: |
12-
# /bin/bash -c "ping -c 3 host.docker.internal"
13-
logging:
14-
driver: "json-file"
15-
options:
16-
max-file: "5"
17-
max-size: 10m
18-
deploy:
19-
resources:
20-
limits:
21-
memory: 5g
22-
cpus: '0.7'
2311
ports:
24-
- $W9_HTTP_PORT_SET:80
25-
env_file: .env
12+
- $W9_HTTP_PORT_SET:3000
13+
depends_on:
14+
- runtime
15+
env_file:
16+
- .env
2617
volumes:
27-
- wordpress:/var/www/html
28-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
18+
- /var/run/docker.sock:/var/run/docker.sock
19+
- openhands-state:/.openhands-state
20+
21+
runtime:
22+
image: docker.all-hands.dev/all-hands-ai/runtime:0.28-nikolaik
23+
container_name: $W9_ID-runtime
24+
restart: "no"
2925

30-
mariadb:
31-
image: mariadb:10.4
32-
container_name: $W9_ID-mariadb
33-
restart: unless-stopped
34-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
35-
volumes:
36-
- mysql_data:/var/lib/mysql
37-
environment:
38-
MYSQL_DATABASE: $W9_ID
39-
MYSQL_USER: $W9_ID
40-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
41-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
4226

4327
volumes:
44-
wordpress:
45-
mysql_data:
28+
openhands-state:
4629

4730
networks:
4831
default:
4932
name: $W9_NETWORK
50-
external: true
33+
external: true

apps/openhands/variables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"dist": "community",
1010
"version": [
11-
"latest"
11+
"0.28"
1212
]
1313
}
1414
],

0 commit comments

Comments
 (0)