2019-12-18 18:39:33 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
2021-05-20 23:03:02 +00:00
|
|
|
fb:
|
|
|
|
external: false
|
2019-12-18 18:39:33 +00:00
|
|
|
|
|
|
|
services:
|
2021-05-20 23:03:02 +00:00
|
|
|
db:
|
2022-12-16 22:31:08 +00:00
|
|
|
image: postgres:15
|
2021-05-20 23:03:02 +00:00
|
|
|
container_name: filebin_db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=fb
|
|
|
|
- POSTGRES_USER=fb
|
|
|
|
- POSTGRES_DB=fb
|
|
|
|
volumes:
|
|
|
|
- ./filebin_db/:/var/lib/postgresql/data # persist postgres data on the host
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- fb
|
2019-12-18 18:39:33 +00:00
|
|
|
|
2021-05-20 23:03:02 +00:00
|
|
|
app:
|
|
|
|
image: varakh/filebin:latest
|
|
|
|
container_name: filebin_app
|
2021-11-09 16:43:24 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2021-05-20 23:03:02 +00:00
|
|
|
ports:
|
2022-06-03 23:47:49 +00:00
|
|
|
- "127.0.0.1:8080:80" # exposed port :80 mapped to :8080 on only this host. 8080 should then be used in proxy
|
2021-05-20 23:03:02 +00:00
|
|
|
environment:
|
|
|
|
- BASE_URL=https://fb.domain.tld/ # with trailing slash
|
|
|
|
- DB_HOST=db
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_NAME=fb
|
|
|
|
- DB_USER=fb
|
|
|
|
- DB_PASS=fb
|
|
|
|
- ENCRYPTION_KEY= # REQUIRED: set a 32 character long sequence
|
|
|
|
volumes:
|
|
|
|
- "./filebin_data:/var/www/data/uploads" # persist filebin data on the host
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- fb
|
|
|
|
command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure.php && exec s6-svscan /etc/s6/'
|