-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 933 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 933 Bytes
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
services:
librarydb:
image: postgres:16.3
container_name: librarydb
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: library
ports:
- "5432:5432"
networks:
- library-network
pgadmin4:
image: dpage/pgadmin4
container_name: pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "15432:80"
networks:
- library-network
depends_on:
- librarydb
libraryapi:
image: joaotinelli/libraryapi:v2
container_name: libraryapi
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://librarydb:5432/library
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
ports:
- "8080:8080"
networks:
- library-network
depends_on:
- librarydb
networks:
library-network:
external: true