-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (58 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
64 lines (58 loc) · 1.14 KB
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
version: "3"
services:
postgres:
image: postgres:10.3
restart: always
ports:
- "5433:5433"
command: -p 5433
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
networks:
- api
redis:
image: bitnami/redis:latest
restart: always
environment:
- REDIS_PASSWORD=12345678
- REDIS_PORT=6379
ports:
- "6380:6379"
networks:
- api
api:
build:
context: .
entrypoint: yarn start:dev
environment:
- REDIS_HOST=redis
- PORT=8002
- DATABASE_PORT=5433
- DATABASE_USER=prisma
- DATABASE_HOST=postgres
- DATABASE_PASSWORD=prisma
- DATABASE_URL=postgresql://prisma:prisma@postgres:5433
ports:
- "8002:8000"
- "8003:8001"
networks:
- api
- loki
loki:
image: grafana/loki:2.6.0
ports:
- "3101:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- loki
promtail:
image: grafana/promtail:2.6.0
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
networks:
- loki
networks:
api:
loki: