-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yaml
72 lines (67 loc) · 1.48 KB
/
docker-compose.yaml
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
69
70
71
72
services:
# anor:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8008:8008"
# expose:
# - 8008
# depends_on:
# - postgres
# - typesense
# - redis
# networks:
# - anor_net
# volumes:
# - ./config/config.docker.dev.yaml:/root/config.docker.dev.yaml:ro
# environment:
# - CONFIG=/root/config.docker.dev.yaml
# restart: unless-stopped
postgres:
image: postgres:16.1
environment:
POSTGRES_DB: anordb16
POSTGRES_USER: anordb16user
POSTGRES_PASSWORD: anordb16password
PGDATA: /data/postgres
volumes:
- anor_data:/data/postgres
ports:
- 5432:5432
expose:
- 5432
networks:
- anor_net
restart: unless-stopped
typesense:
image: typesense/typesense:27.0.rc19
ports:
- "8108:8108"
expose:
- 8108
volumes:
- ./_typesense-data:/data
command: '--data-dir /data --api-key=xyz --enable-cors --enable-search-analytics=true --analytics-flush-interval=300'
networks:
- anor_net
restart: unless-stopped
redis:
image: redis:7
container_name: redis
volumes:
- ./_redis-data/redis.conf:/redis.conf:rw
- ./_redis-data/data:/data:rw
- ./_redis-data/users.acl:/etc/redis/users.acl:rw
command:
- /redis.conf
ports:
- "6379:6379"
networks:
- anor_net
restart: always
networks:
anor_net:
driver: bridge
volumes:
anor_data: