mirror of
https://github.com/face-hh/lyntr.git
synced 2026-09-12 19:51:01 +05:00
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
secrets:
|
|
serverEnv:
|
|
file: ./.env
|
|
|
|
services:
|
|
bot:
|
|
build:
|
|
context: ./src/misc/
|
|
dockerfile: ./Dockerfile
|
|
restart: always
|
|
secrets:
|
|
- serverEnv
|
|
ports:
|
|
- '5444:5444'
|
|
networks:
|
|
- lynternet
|
|
|
|
minio:
|
|
networks:
|
|
- lynternet
|
|
image: minio/minio
|
|
container_name: minio
|
|
ports:
|
|
- '9000:9000'
|
|
- '9001:9001'
|
|
volumes:
|
|
- ./minio-data:/data
|
|
environment:
|
|
- MINIO_ROOT_USER=${MINIO_USER}
|
|
- MINIO_ROOT_PASSWORD=${MINIO_PASS}
|
|
command: server --console-address :9001 /data
|
|
website:
|
|
restart: unless-stopped
|
|
platform: linux/x86_64
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
ports:
|
|
- '6000-6002:5999'
|
|
environment:
|
|
- PUBLIC_SERVER_HOST=http://localhost:5999
|
|
secrets:
|
|
- serverEnv
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 3
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
networks:
|
|
- lynternet
|
|
db:
|
|
image: postgres:16.2-alpine
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- POSTGRES_PASSWORD=${PG_PWD}
|
|
- POSTGRES_USER=lyntr
|
|
- POSTGRES_DB=lyntrdb
|
|
volumes:
|
|
- ./pg/data:/var/lib/postgresql/data
|
|
- ./pg/postgresql.conf:/etc/postgresql.conf
|
|
command: ['postgres', '-c', 'config_file=/etc/postgresql.conf']
|
|
networks:
|
|
- lynternet
|
|
|
|
networks:
|
|
lynternet:
|