-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
51 lines (49 loc) · 930 Bytes
/
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
version: '3,8'
services:
kuki:
image: kuki:latest
build:
context: .
dockerfile: Dockerfile
ports:
- 1323:1323
- 50051:50051
depends_on:
- db-kuki
volumes:
- kuki:/app
environment:
- GRPC_PORT=50051
- REST_PORT=1323
- DB_HOST=db-kuki
- DB_PORT=5432
- DB_USER=kuki
- DB_PASS=kuki
- DB_NAME=todos
- DB_SSL=disable
restart: on-failure
networks:
- kuki
db-kuki:
image: postgres:15
restart: always
environment:
POSTGRES_USER: kuki
POSTGRES_PASSWORD: kuki
POSTGRES_DB: kuki
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
volumes:
- db-kuki:/var/lib/postgresql/data
- ./database/migrations:/docker-entrypoint-initdb.d
networks:
- kuki
volumes:
db-kuki:
name: db-kuki
kuki:
name: kuki
networks:
kuki:
driver: bridge