-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 1016 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
version: '3.7'
services:
api:
container_name: api
image: rhribeiro25/base-project-spring-batch:latest
environment:
- DATABASE_HOST=pgsql
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_NAME=base-project-spring-batch-db
- DATABASE_PORT=5432
restart: always
ports:
- 9090:9090
volumes:
- /tmp:/var/lib/app
depends_on:
- pgsql
pgsql:
container_name: pgsql
image: postgres:latest
environment:
POSTGRES_DB: base-project-spring-batch-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: rhribeiro_25@hotmail.com
PGADMIN_DEFAULT_PASSWORD: postgres
ports:
- 16543:80
depends_on:
- pgsql
networks:
default:
external:
name: base-project-spring-batch-net