This commit is contained in:
x 2025-03-09 04:55:19 +01:00
parent e4ba87528a
commit a6fe997b92
2 changed files with 121 additions and 0 deletions

36
docker-compose-dev.yaml Normal file
View File

@ -0,0 +1,36 @@
services:
# f0ck:
# container_name: f0ck-dockerv
# image: f0ck-dockerv16
# networks:
# - f0cked
# volumes:
# - ./config.json:/opt/f0ckv2/config.json
# - ./f0ckv2.sql:/opt/f0ckv2/f0ckv2.sql
# - ./f0ck-data/b/:/opt/f0ckv2/public/b/
# - ./f0ck-data/ca/:/opt/f0ckv2/public/ca/
# - ./f0ck-data/t/:/opt/f0ckv2/public/t/
# ports:
# - "127.0.0.1:1337:1337"
# restart: on-failure
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: f0ck
POSTGRES_USER: f0ck
POSTGRES_PASSWORD: f0ck
PGDATA: /data/postgres
volumes:
- ./postgres:/data/postgres
ports:
- "127.0.0.1:5432:5432"
networks:
- f0cked
restart: unless-stopped
networks:
f0cked:
driver: bridge
volumes:
postgres:

85
docker-compose-prod.yaml Normal file
View File

@ -0,0 +1,85 @@
{
"main": {
"url": {
"full": "https://f0ck.dev",
"domain": "f0ck.dev",
"regex": "f0ck\\.dev"
},
"socks": "socks5://f0ck:f0cklol@flumm.io:1080",
"maxfilesize": 83886080,
"adminmultiplier": 3.5,
"ignored": [
]
},
"allowedModes": [ "sfw", "nsfw", "untagged", "all" ],
"allowedMimes": [ "audio", "image", "video" ],
"nsfp": [ ],
"websrv": {
"port": "1337",
"paths": {
"images": "/b",
"thumbnails": "/t",
"coverarts": "/ca"
},
"themes": [ "atmos", "amoled", "f0ck95d" ],
"eps": 300,
"cache": false,
"phrases": [
"foo",
"bar"
]
},
"clients": [{
"type": "tg",
"enabled": false,
"token": "",
"pollrate": 1001
}, {
"type": "irc",
"enabled": true,
"network": "n0xy",
"host": "irc.n0xy.net",
"port": 6697,
"ssl": true,
"selfSigned": true,
"sasl": false,
"nickname": "f1ck2",
"username": "f1ck2",
"password": "",
"realname": "f1ck2",
"channels": [
"#f1ck2"
]
}],
"sql": {
"host": "localhost",
"user": "f0ck",
"password": "f0ck",
"database": "f0ck",
"multipleStatements": true
},
"admins": [{
"prefix": "nixc!nixc@x@n0xy",
"level": 100
}],
"mimes": {
"image/png": "png",
"video/webm": "webm",
"image/gif": "gif",
"image/jpg": "jpg",
"image/jpeg": "jpeg",
"image/webp": "webp",
"video/mp4": "mp4",
"video/quicktime": "mp4",
"audio/mpeg": "mpg",
"audio/mp3": "mp3",
"audio/ogg": "ogg",
"audio/opus": "opus",
"audio/flac": "flac",
"audio/x-flac": "flac",
"video/x-m4v": "mp4",
"video/x-matroska": "mkv"
},
"apis": {
}
}