forked from techschool/simplebank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (45 loc) · 1 KB
/
docker-compose.yaml
File metadata and controls
46 lines (45 loc) · 1 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
version: "3.3"
services:
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=simple_bank
ports:
- "5432:5432"
volumes:
- data-volume:/var/lib/postgresql/data
redis:
image: redis:7-alpine
bytebase:
image: bytebase/bytebase:2.22.3
ports:
- "8080:8080"
environment:
- DATABASE_URL=postgresql://root:secret@host.docker.internal:5432/simple_bank
volumes:
- ./bytebase-data:/data
# api:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# - "9090:9090"
# environment:
# - DB_SOURCE=postgresql://root:secret@postgres:5432/simple_bank?sslmode=disable
# - REDIS_ADDRESS=redis:6379
# depends_on:
# - postgres
# - redis
# entrypoint:
# [
# "/app/wait-for.sh",
# "postgres:5432",
# "--",
# "/app/start.sh"
# ]
# command: [ "/app/main" ]
volumes:
data-volume: