Skip to content

Commit 2a1efcf

Browse files
authored
Merge pull request #1213 from Websoft9/update-neko-645c54d7
Update neko
2 parents 044d75b + 7fabde9 commit 2a1efcf

File tree

2 files changed

+28
-54
lines changed

2 files changed

+28
-54
lines changed

apps/neko/.env

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,37 @@
1-
W9_REPO=wordpress
2-
W9_DIST=community
1+
W9_REPO=m1k1o/neko:chromium
2+
W9_DIST='community'
33
W9_VERSION=latest
4-
5-
W9_POWER_PASSWORD=1PrMxExC45LsCT
4+
W9_POWER_PASSWORD='t7#Rh#FI29CjFo1A'
65

76
# Environments which for user settings when create application
87
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
9-
W9_HTTP_PORT_SET=9001
8+
W9_HTTP_PORT_SET='9001'
109
# W9_HTTPS_PORT_SET=9002
1110
# W9_DB_PORT_SET=3306
1211
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
12+
# W9_KEY_SET='dfsjdkjf77xjxcjcj'
13+
W9_LOGIN_USER=admin
14+
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
1415

1516
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
16-
17-
W9_ID=neko
17+
W9_ID='neko'
1818

1919
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
2020
# Some container (e.g teleport) need HTTPS access, then need to set this pra
21-
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
21+
W9_HTTP_PORT=8080
2322

24-
W9_LOGIN_USER=admin
23+
# W9_LOGIN_USER=admin
2524
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
2625
# this password can also use password file
27-
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
28-
W9_ADMIN_PATH="/wp-login"
26+
# W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
27+
# W9_ADMIN_PATH="/wp-login"
2928

3029
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
30+
# W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
3231

3332
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT, http(s)://IP:PORT
34-
W9_URL=internet_ip:$W9_HTTP_PORT
33+
W9_URL='internet_ip:$W9_HTTP_PORT'
3534
# modifies W9_URL on init when it is true
36-
W9_URL_REPLACE=true
37-
38-
W9_URL_WITH_PORT=false
3935

4036
W9_NETWORK=websoft9
4137

@@ -45,4 +41,4 @@ W9_NETWORK=websoft9
4541
# Below environment is created by apphub
4642

4743
#W9_NAME=""
48-
#W9_RCODE=""
44+
#W9_RCODE=""

apps/neko/docker-compose.yml

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,25 @@ version: '3.8'
44

55
services:
66

7-
wordpress:
8-
image: $W9_REPO:$W9_VERSION
7+
neko:
8+
image: $W9_REPO
99
container_name: $W9_ID
1010
restart: unless-stopped
11-
#This is for access host from container
12-
# extra_hosts: ["host.docker.internal:host-gateway"]
13-
# command: |
14-
# /bin/bash -c "ping -c 3 host.docker.internal"
15-
logging:
16-
driver: "json-file"
17-
options:
18-
max-file: "5"
19-
max-size: 10m
20-
deploy:
21-
resources:
22-
limits:
23-
memory: 5g
24-
cpus: '0.7'
11+
shm_size: "2gb"
2512
ports:
26-
- $W9_HTTP_PORT_SET:80
27-
env_file: .env
28-
volumes:
29-
- wordpress:/var/www/html
30-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
31-
32-
mariadb:
33-
image: mariadb:10.4
34-
container_name: $W9_ID-mariadb
35-
restart: unless-stopped
36-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
37-
volumes:
38-
- mysql_data:/var/lib/mysql
13+
- "$W9_HTTP_PORT_SET:8080"
14+
- "52000-52100:52000-52100/udp"
3915
environment:
40-
MYSQL_DATABASE: $W9_ID
41-
MYSQL_USER: $W9_ID
42-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
43-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
16+
NEKO_SCREEN: 1920x1080@30
17+
NEKO_EPR: 52000-52100
18+
NEKO_ICELITE: 1
19+
NEKO_PASSWORD: $W9_POWER_PASSWORD
20+
NEKO_PASSWORD_ADMIN: $W9_LOGIN_USER
21+
env_file: .env
4422

23+
4524
volumes:
46-
wordpress:
47-
mysql_data:
25+
neko:
4826

4927
networks:
5028
default:

0 commit comments

Comments
 (0)