forked from face-hh/lyntr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
68 lines (65 loc) · 1.37 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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: