-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
52 lines (48 loc) · 879 Bytes
/
docker-compose.yaml
File metadata and controls
52 lines (48 loc) · 879 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
44
45
46
47
48
49
50
51
52
services:
postgres:
image: postgres:15
container_name: jwt_postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL","pg_isready -U jwt_user -d jwt_auth_db" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- jwt_net
env_file:
- .env
app:
build: .
container_name: jwt_app
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
env_file:
- .env
networks:
- jwt_net
pgadmin:
image: dpage/pgadmin4
container_name: jwt_pgadmin
env_file:
- .env
ports:
- "5050:80"
depends_on:
- postgres
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- jwt_net
volumes:
pgdata:
pgadmin_data:
networks:
jwt_net:
driver: bridge