forked from KubeDev/kube-news
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (49 loc) · 1.04 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
version: "3.8"
volumes:
pgdb-kube_vol:
networks:
kube_net:
driver: bridge
services:
app-kube:
image: giozandonai/kube-news:v1
build:
context: ./src
container_name: app-kube
restart: always
depends_on:
- pgdb-kube
ports:
- 8080:8080
environment:
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USER}
DB_PASSWORD: ${DB_PWD}
DB_HOST: pgdb-kube
networks:
- kube_net
pgdb-kube:
image: postgres:14.5-alpine
container_name: pgdb-kube
restart: always
volumes:
- pgdb-kube_vol:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PWD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_DATABASE}
networks:
- kube_net
pgadmin-kube:
image: dpage/pgadmin4:6
container_name: pgadmin-kube
restart: always
depends_on:
- pgdb-kube
ports:
- 8090:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: testepwd
networks:
- kube_net