-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (38 loc) · 918 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (38 loc) · 918 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
version: '3.9'
services:
# Servicio para PostgreSQL
postgres:
image: postgres:14
container_name: medallero_postgres_db
#restart: always
environment:
POSTGRES_DB: users
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin123
ports:
- "5432:5432"
volumes:
- ./initdb.sql:/docker-entrypoint-initdb.d/init.sql
# Service for Spring Boot
springboot:
build:
context: . # Path to your Spring Boot application code
dockerfile: Dockerfile
container_name: medallero_springboot
environment:
- SCOPE=prod
#restart: always
ports:
- "8080:8080"
depends_on:
- postgres
# Service for PgAdmin
pgadmin:
image: dpage/pgadmin4:7.5
container_name: medallero_pg_admin
#restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@gmail.com
PGADMIN_DEFAULT_PASSWORD: admin123
ports:
- "5050:80"