Commit 022b74e 1 parent 5b73255 commit 022b74e Copy full SHA for 022b74e
File tree 3 files changed +2
-10
lines changed
contrib/dev-tools/container
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -98,20 +98,14 @@ COPY --from=gcc --chmod=0555 /usr/local/bin/su-exec /bin/su-exec
98
98
ARG TORRUST_INDEX_PATH_CONFIG="/etc/torrust/index/index.toml"
99
99
ARG TORRUST_INDEX_DATABASE_DRIVER="sqlite3"
100
100
ARG USER_ID=1000
101
- ARG UDP_PORT=6969
102
- ARG HTTP_PORT=7070
103
- ARG API_PORT=1212
101
+ ARG API_PORT=3001
104
102
105
103
ENV TORRUST_INDEX_PATH_CONFIG=${TORRUST_INDEX_PATH_CONFIG}
106
104
ENV TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER}
107
105
ENV USER_ID=${USER_ID}
108
- ENV UDP_PORT=${UDP_PORT}
109
- ENV HTTP_PORT=${HTTP_PORT}
110
106
ENV API_PORT=${API_PORT}
111
107
ENV TZ=Etc/UTC
112
108
113
- EXPOSE ${UDP_PORT}/udp
114
- EXPOSE ${HTTP_PORT}/tcp
115
109
EXPOSE ${API_PORT}/tcp
116
110
117
111
RUN mkdir -p /var/lib/torrust/index /var/log/torrust/index /etc/torrust/index
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
USER_ID=${USER_ID:- 1000}
4
- TORRUST_INDEX_RUN_AS_USER=${TORRUST_INDEX_RUN_AS_USER:- appuser}
5
4
6
5
echo " Building docker image ..."
7
6
echo " USER_ID: $USER_ID "
8
- echo " TORRUST_INDEX_RUN_AS_USER: $TORRUST_INDEX_RUN_AS_USER "
9
7
10
8
docker build \
11
9
--build-arg UID=" $USER_ID " \
12
- --build-arg RUN_AS_USER=" $TORRUST_INDEX_RUN_AS_USER " \
13
10
-t torrust-index .
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ USER_ID=${USER_ID:-1000} \
11
11
TORRUST_TRACKER_DATABASE_DRIVER=" sqlite3" \
12
12
TORRUST_TRACKER_API_ADMIN_TOKEN=" MyAccessToken" \
13
13
docker compose up -d
14
+
You can’t perform that action at this time.
0 commit comments