2018-10-09 08:09:50 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2024-04-06 19:13:08 +02:00
|
|
|
image: iceshrimp.dev/crimekillz/trashposs:dev
|
2023-08-03 18:36:11 +02:00
|
|
|
### If you want to build the image locally
|
2023-08-04 21:40:06 +02:00
|
|
|
# build: .
|
2023-08-15 22:35:22 +02:00
|
|
|
### If you want to build the image locally AND use Docker 20.10
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# args:
|
|
|
|
# DOCKER_BUILDKIT: 1
|
2024-04-06 23:55:59 +02:00
|
|
|
container_name: trashposs_web
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2022-11-07 04:04:57 +01:00
|
|
|
depends_on:
|
2019-04-07 14:50:36 +02:00
|
|
|
- db
|
2019-04-14 05:05:12 +02:00
|
|
|
- redis
|
2018-10-09 08:09:50 +02:00
|
|
|
ports:
|
2022-05-15 09:39:23 +02:00
|
|
|
- "3000:3000"
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
- trashnet
|
2022-12-13 05:32:12 +01:00
|
|
|
# - web
|
|
|
|
environment:
|
|
|
|
NODE_ENV: production
|
2020-07-30 14:13:38 +02:00
|
|
|
volumes:
|
2024-04-06 23:55:59 +02:00
|
|
|
- ./files:/trashposs/files
|
|
|
|
- ./.config:/trashposs/.config:ro
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-14 05:05:12 +02:00
|
|
|
redis:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2022-12-08 15:17:00 +01:00
|
|
|
image: docker.io/redis:7.0-alpine
|
2024-04-06 23:55:59 +02:00
|
|
|
container_name: trashposs_redis
|
2019-04-14 05:05:12 +02:00
|
|
|
networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
- trashnet
|
2019-04-14 05:05:12 +02:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
db:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2022-12-19 01:57:51 +01:00
|
|
|
image: docker.io/postgres:12.2-alpine
|
2024-04-06 23:55:59 +02:00
|
|
|
container_name: trashposs_db
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
- trashnet
|
2019-04-07 14:50:36 +02:00
|
|
|
env_file:
|
2022-12-16 22:59:10 +01:00
|
|
|
- .config/docker.env
|
2018-10-09 08:09:50 +02:00
|
|
|
volumes:
|
2019-04-07 14:50:36 +02:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2024-03-30 22:43:32 +01:00
|
|
|
## Uncomment to enable federation with tor instances. You also need to add the following variables to .config/docker.env
|
|
|
|
## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
|
|
|
|
## You also need to set the following params in .config/default.yml
|
|
|
|
## proxy: http://127.0.0.1:8118
|
|
|
|
# tor:
|
|
|
|
# image: sirboops/tor
|
|
|
|
# networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
# - trashnet
|
2024-03-30 22:43:32 +01:00
|
|
|
#
|
|
|
|
# privoxy:
|
|
|
|
# image: sirboops/privoxy
|
|
|
|
# volumes:
|
|
|
|
# - ./.config/priv-config:/opt/config
|
|
|
|
# networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
# - trashnet
|
2024-03-30 22:43:32 +01:00
|
|
|
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2024-04-06 23:55:59 +02:00
|
|
|
trashnet:
|
2023-05-26 10:05:46 +02:00
|
|
|
# web:
|
|
|
|
# external:
|
|
|
|
# name: web
|