-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (41 loc) · 1.02 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
version: "3.9"
name: golang-template
services:
db:
image: postgres:16.2-alpine3.19
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
volumes:
- postgres-db:/var/lib/postgresql/data
command: ["postgres", "-c", "log_statement=all"]
pgAdmin:
image: dpage/pgadmin4:8.4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_PORT: 5050
ports:
- "127.0.0.1:5050:5050"
volumes:
- pg-admin-data:/pgadmin4/servers.json
logging:
driver: none
depends_on:
- db
dex:
image: dexidp/dex:v2.39.0-alpine
ports:
- "127.0.0.1:5556:5556"
- "127.0.0.1:5558:5558"
volumes:
- ./.infra/dex-config.yaml:/etc/dex/cfg/config.yaml
command: ["/usr/local/bin/dex", "serve", "/etc/dex/cfg/config.yaml"]
depends_on:
- db
volumes:
postgres-db:
pg-admin-data: