Skip to content

Commit 72af0a7

Browse files
committed
Update environment variables and Dockerfile for adding support for Dart runtime
1 parent 441a248 commit 72af0a7

4 files changed

Lines changed: 42 additions & 23 deletions

File tree

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_APP_ENV=development
1+
_APP_ENV=production
22
_APP_EDITION=self-hosted
33
_APP_LOCALE=en
44
_APP_WORKER_PER_CORE=6
@@ -76,7 +76,7 @@ _APP_FUNCTIONS_MAINTENANCE_INTERVAL=600
7676
_APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes
7777
_APP_EXECUTOR_SECRET=your-secret-key
7878
_APP_EXECUTOR_HOST=http://proxy/v1
79-
_APP_FUNCTIONS_RUNTIMES=php-8.0,node-18.0,python-3.9,ruby-3.1
79+
_APP_FUNCTIONS_RUNTIMES=php-8.0,node-18.0,python-3.9,ruby-3.1,dart-3.1
8080
_APP_MAINTENANCE_INTERVAL=86400
8181
_APP_MAINTENANCE_DELAY=
8282
_APP_MAINTENANCE_RETENTION_CACHE=2592000

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
1212
--no-plugins --no-scripts --prefer-dist \
1313
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`
1414

15+
FROM --platform=$BUILDPLATFORM node:20.11.0-alpine3.19 as node
16+
17+
COPY app/console /usr/local/src/console
18+
19+
WORKDIR /usr/local/src/console
20+
21+
ARG VITE_GA_PROJECT
22+
ARG VITE_CONSOLE_MODE
23+
ARG VITE_APPWRITE_GROWTH_ENDPOINT=https://growth.appwrite.io/v1
24+
25+
ENV VITE_GA_PROJECT=$VITE_GA_PROJECT
26+
ENV VITE_CONSOLE_MODE=$VITE_CONSOLE_MODE
27+
ENV VITE_APPWRITE_GROWTH_ENDPOINT=$VITE_APPWRITE_GROWTH_ENDPOINT
28+
29+
RUN npm ci
30+
RUN npm run build
31+
1532
FROM appwrite/base:0.9.3 AS final
1633

1734
LABEL maintainer="team@appwrite.io"

app/console

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit dd4d841e316bcba77d462a34909589ac9b106cac

docker-compose.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -193,27 +193,28 @@ services:
193193
- _APP_EXPERIMENT_LOGGING_CONFIG
194194
- _APP_DATABASE_SHARED_TABLES
195195

196-
appwrite-console:
197-
<<: *x-logging
198-
container_name: appwrite-console
199-
image: appwrite/console:5.0.12
200-
restart: unless-stopped
201-
networks:
202-
- appwrite
203-
labels:
204-
- "traefik.enable=true"
205-
- "traefik.constraint-label-stack=appwrite"
206-
- "traefik.docker.network=appwrite"
207-
- "traefik.http.services.appwrite_console.loadbalancer.server.port=80"
208-
#ws
209-
- traefik.http.routers.appwrite_console_http.entrypoints=appwrite_web
210-
- traefik.http.routers.appwrite_console_http.rule=PathPrefix(`/console`)
211-
- traefik.http.routers.appwrite_console_http.service=appwrite_console
212-
# wss
213-
- traefik.http.routers.appwrite_console_https.entrypoints=appwrite_websecure
214-
- traefik.http.routers.appwrite_console_https.rule=PathPrefix(`/console`)
215-
- traefik.http.routers.appwrite_console_https.service=appwrite_console
216-
- traefik.http.routers.appwrite_console_https.tls=true
196+
# appwrite-console:
197+
# <<: *x-logging
198+
# container_name: appwrite-console
199+
# # image: appwrite/console:5.0.12
200+
# image: appwrite-dev
201+
# restart: unless-stopped
202+
# networks:
203+
# - appwrite
204+
# labels:
205+
# - "traefik.enable=true"
206+
# - "traefik.constraint-label-stack=appwrite"
207+
# - "traefik.docker.network=appwrite"
208+
# - "traefik.http.services.appwrite_console.loadbalancer.server.port=80"
209+
# #ws
210+
# - traefik.http.routers.appwrite_console_http.entrypoints=appwrite_web
211+
# - traefik.http.routers.appwrite_console_http.rule=PathPrefix(`/console`)
212+
# - traefik.http.routers.appwrite_console_http.service=appwrite_console
213+
# # wss
214+
# - traefik.http.routers.appwrite_console_https.entrypoints=appwrite_websecure
215+
# - traefik.http.routers.appwrite_console_https.rule=PathPrefix(`/console`)
216+
# - traefik.http.routers.appwrite_console_https.service=appwrite_console
217+
# - traefik.http.routers.appwrite_console_https.tls=true
217218

218219
appwrite-realtime:
219220
entrypoint: realtime

0 commit comments

Comments
 (0)