2022-12-13 04:34:18 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2024-04-06 23:55:59 +02:00
|
|
|
image: iceshrimp.dev/Crimekillz/trashposs:dev
|
2022-12-13 05:38:46 +01:00
|
|
|
build: ..
|
2024-04-06 23:55:59 +02:00
|
|
|
container_name: trashposs_web
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: always
|
2022-12-13 04:34:18 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
# - es
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
- network
|
2022-12-17 01:25:46 +01:00
|
|
|
# - web
|
2022-12-13 04:34:18 +01:00
|
|
|
volumes:
|
2024-04-06 23:55:59 +02:00
|
|
|
- ../files:/trashposs/files
|
|
|
|
- ../.config:/trashposs/.config:ro
|
2022-12-13 04:34:18 +01:00
|
|
|
|
|
|
|
redis:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: always
|
2024-04-06 23:55:59 +02:00
|
|
|
container_name: trashposs_redis
|
2022-12-13 04:34:18 +01:00
|
|
|
image: docker.io/redis:7.0-alpine
|
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
- network
|
2022-12-13 04:34:18 +01:00
|
|
|
volumes:
|
2022-12-13 05:38:46 +01:00
|
|
|
- ../redis:/data
|
2022-12-13 04:34:18 +01:00
|
|
|
|
|
|
|
db:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: always
|
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
|
2022-12-13 04:34:18 +01:00
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
- network
|
2022-12-13 04:34:18 +01:00
|
|
|
env_file:
|
2022-12-13 05:38:46 +01:00
|
|
|
- ../.config/docker.env
|
2022-12-13 04:34:18 +01:00
|
|
|
volumes:
|
2022-12-13 05:38:46 +01:00
|
|
|
- ../db:/var/lib/postgresql/data
|
2022-12-13 04:34:18 +01:00
|
|
|
|
|
|
|
# es:
|
2022-12-13 05:32:12 +01:00
|
|
|
# restart: always
|
|
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
|
|
# environment:
|
2022-12-13 04:34:18 +01:00
|
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
# - "TAKE_FILE_OWNERSHIP=111"
|
|
|
|
# networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
# - network
|
2022-12-13 04:34:18 +01:00
|
|
|
# volumes:
|
|
|
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
|
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
network:
|
2022-12-17 01:25:46 +01:00
|
|
|
# web:
|
|
|
|
# external:
|
|
|
|
# name: web
|