-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (64 loc) · 1.38 KB
/
docker-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
69
services:
server:
container_name: logme_server
build:
context: .
dockerfile: ./docker/Dockerfile
env_file: .env
depends_on:
logs:
condition: service_started
database:
condition: service_started
cache:
condition: service_started
queue:
condition: service_started
networks:
- app-network
ports:
- "8080:8080"
volumes:
- ./:/go/src/github.com/patoui/logme
logs:
container_name: logme_clickhouse
image: clickhouse/clickhouse-server:24.5.1-alpine
ports:
- 8123:8123
- 9000:9000
- 9009:9009
networks:
- app-network
volumes:
- ./docker/clickhouse/initdb:/docker-entrypoint-initdb.d
database:
container_name: logme_postgres
image: postgres
environment:
POSTGRES_DB: main
POSTGRES_USER: admin
POSTGRES_PASSWORD: P@ssword321
ports:
- "5432:5432"
networks:
- app-network
user: 999:999
volumes:
- ./docker/postgres/initdb:/docker-entrypoint-initdb.d
cache:
container_name: logme_cache
image: valkey/valkey:7.2-alpine3.19
networks:
- app-network
queue:
container_name: logme_queue
build:
context: .
dockerfile: ./docker/queue/Dockerfile
depends_on:
- cache
networks:
- app-network
networks:
app-network:
driver: bridge