-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (44 loc) · 992 Bytes
/
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
services:
api:
# image: simplebank
build: .
ports:
- "8080:8080"
environment:
DB_DRIVER: $DB_DRIVER
DB_SOURCE: $DB_SOURCE
SERVER_ADDRESS: $SERVER_ADDRESS
TOKEN_SYMMETRIC_KEY: $TOKEN_SYMMETRIC_KEY
ACCESS_TOKEN_DURATION: $ACCESS_TOKEN_DURATION
depends_on:
- pg
entrypoint: ["/app/wait-for.sh", "pg:5432", "--", "/app/start.sh"]
command: ["/app/main"]
pg:
image: postgres:12-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: secret
POSTGRES_DB: simple_bank
pgadmin:
image: dpage/pgadmin4
ports:
- "9999:80"
environment:
PGADMIN_DEFAULT_EMAIL: $MY_EMAIL
PGADMIN_DEFAULT_PASSWORD: secret
adminer:
image: adminer
ports:
- "9998:8080"
migrate:
image: migrate/migrate
volumes:
- ./db/migrations:/migrations
sqlc:
image: kjconroy/sqlc
volumes:
- .:/src
working_dir: /src