This commit is contained in:
x 2025-03-08 19:51:32 +01:00
parent 2032856ad3
commit 5011d7950a
4 changed files with 32 additions and 43 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
blah
docker buildx build -f f0ck.dockerfile . -t f0ck-dockerv<int>

View File

@ -1,9 +1,9 @@
{ {
"main": { "main": {
"url": { "url": {
"full": "", "full": "http://f0ck.lokal",
"domain": "", "domain": "f0ck.lokal",
"regex": "blah\\.tld" "regex": "f0ck\\.lokal"
}, },
"socks": "", "socks": "",
"maxfilesize": 83886080, "maxfilesize": 83886080,
@ -15,7 +15,7 @@
"allowedMimes": [ "audio", "image", "video" ], "allowedMimes": [ "audio", "image", "video" ],
"nsfp": [ ], "nsfp": [ ],
"websrv": { "websrv": {
"port": "1338", "port": "1337",
"paths": { "paths": {
"images": "/b", "images": "/b",
"thumbnails": "/t", "thumbnails": "/t",
@ -31,30 +31,31 @@
}, },
"clients": [{ "clients": [{
"type": "tg", "type": "tg",
"enabled": true, "enabled": false,
"token": "", "token": "",
"pollrate": 1001 "pollrate": 1001
}, { }, {
"type": "irc", "type": "irc",
"enabled": false, "enabled": true,
"network": "", "network": "irc.n0xy.net",
"host": "", "host": "",
"port": 6697, "port": 6697,
"ssl": true, "ssl": true,
"selfSigned": false, "selfSigned": false,
"sasl": false, "sasl": false,
"nickname": "", "nickname": "fleischwurst",
"username": "", "username": "fleischwurst",
"password": "", "password": "",
"realname": "", "realname": "fleischwurst",
"channels": [ "channels": [
"#fleischwurst"
] ]
}], }],
"sql": { "sql": {
"host": "localhost", "host": "localhost",
"user": "", "user": "f0ck",
"password": "", "password": "f0ck",
"database": "", "database": "f0ck",
"multipleStatements": true "multipleStatements": true
}, },
"admins": [{ "admins": [{

View File

@ -3,46 +3,30 @@ version: '3.5'
services: services:
f0ck: f0ck:
container_name: f0ck-dockerv container_name: f0ck-dockerv
image: f0ck-dockerv4 image: f0ck-dockerv15
networks: networks:
- f0cked - f0cked
volumes: volumes:
- f0ck-data-b:/opt/f0ckv2/public/f0ck-b - ./config.json:/opt/f0ckv2/config.json
- f0ck-data-ca:/opt/f0ckv2/public/f0ck-ca - ./f0ckv2.sql:/opt/f0ckv2/f0ckv2.sql
- f0ck-data-t:/opt/f0ckv2/public/f0ck-t
ports: ports:
- "1338:1338" - "1337:1337"
restart: on-failure restart: on-failure
postgres: postgres:
container_name: f0ck_postgres container_name: postgres
image: postgres image: postgres
environment: environment:
POSTGRES_DB: f0ckv2 POSTGRES_DB: f0ck
POSTGRES_USER: f0ck POSTGRES_USER: f0ck
POSTGRES_PASSWORD: f0ck POSTGRES_PASSWORD: f0ck
PGDATA: /data/postgres PGDATA: /data/postgres
volumes: volumes:
- postgres:/data/postgres - ./postgres:/data/postgres
ports: ports:
- "5432:5432" - "5432:5432"
networks: networks:
- f0cked - f0cked
restart: unless-stopped restart: unless-stopped
# pgadmin:
# container_name: pgadmin_container
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
# PGADMIN_CONFIG_SERVER_MODE: 'False'
# volumes:
# - pgadmin:/var/lib/pgadmin
# ports:
# - "5050:80"
# networks:
# - f0cked
# restart: unless-stopped
networks: networks:
f0cked: f0cked:
@ -50,6 +34,3 @@ networks:
volumes: volumes:
postgres: postgres:
f0ck-data-b:
f0ck-data-ca:
f0ck-data-t:

View File

@ -2,10 +2,13 @@ FROM archlinux
RUN pacman -Syy --noconfirm RUN pacman -Syy --noconfirm
RUN pacman -S nodejs npm ffmpeg yt-dlp ffmpegthumbnailer postgresql imagemagick git mailcap --noconfirm RUN pacman -S nodejs npm ffmpeg yt-dlp ffmpegthumbnailer postgresql imagemagick git mailcap --noconfirm
WORKDIR /opt/
RUN git clone https://git.lat/f0ck/f0ckv2.git
WORKDIR /opt/f0ckv2 WORKDIR /opt/f0ckv2
VOLUME ./f0ckv2 /opt/f0ckv2
ENTRYPOINT ["npm", "run", "start"]
COPY f0ckv2/ /opt/f0ckv2
RUN npm i RUN npm i
RUN mkdir -p public/ca deleted/{ca,b,t} RUN mkdir -p public/ca deleted/{ca,b,t}
COPY config.json /opt/f0ckv2/
ENTRYPOINT ["npm", "run", "start"]