forked from yazilimacademy/yazilimacademy-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.27 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
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: yazilimacademy-api
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=postgres;Port=5432;Database=YazilimAcademyDb;User Id=postgres;Password=postgres;
- Redis__Configuration=dragonfly:6379,password=123456
depends_on:
- postgres
- dragonfly
networks:
- yazilimacademy-network
restart: unless-stopped
postgres:
image: postgres:latest
container_name: yazilimacademy-postgres
environment:
- POSTGRES_DB=yzdb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- yazilimacademy-network
restart: unless-stopped
dragonfly:
image: ghcr.io/dragonflydb/dragonfly:latest
container_name: yazilimacademy-dragonfly
command: ["dragonfly", "--requirepass", "123456"]
ports:
- "6379:6379"
volumes:
- dragonfly_data:/data
networks:
- yazilimacademy-network
restart: unless-stopped
networks:
yazilimacademy-network:
driver: bridge
volumes:
postgres_data:
dragonfly_data: