-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
62 lines (57 loc) · 1.19 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
services:
http_server:
container_name: http-server
build:
context: .
dockerfile: Dockerfile
command: /usr/bin/gskeleton run-http
volumes:
- ./configs/gskeleton.yaml:/etc/gskeleton/gskeleton.yaml
restart: always
ports:
- '8000:8000'
networks:
- network-gskeleton
depends_on:
- postgres
grpc_server:
container_name: grpc-server
build:
context: .
dockerfile: Dockerfile
command: /usr/bin/gskeleton run-grpc
volumes:
- ./configs/gskeleton.yaml:/etc/gskeleton/gskeleton.yaml
restart: always
ports:
- '50051:50051'
networks:
- network-gskeleton
depends_on:
- postgres
postgres:
container_name: postgres
image: postgres:16
ports:
- 5432:5432
volumes:
- postgres:/data/postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=gskeleton
networks:
- network-gskeleton
redis:
container_name: redis
image: redis:alpine
restart: always
ports:
- '6379:6379'
networks:
- network-gskeleton
volumes:
postgres:
networks:
network-gskeleton:
driver: bridge