generated from konveyor/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.72 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.72 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
postgres:
image: postgres:13-alpine
container_name: hotrods-postgres
environment:
POSTGRES_DB: hotrods_repair
POSTGRES_USER: hotrods
POSTGRES_PASSWORD: hotrods123
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init-scripts:/docker-entrypoint-initdb.d
networks:
- hotrods-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hotrods -d hotrods_repair"]
interval: 30s
timeout: 10s
retries: 3
pgadmin:
image: dpage/pgadmin4:latest
container_name: hotrods-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@hotrods.com
PGADMIN_DEFAULT_PASSWORD: admin123
ports:
- "5051:80"
depends_on:
- postgres
networks:
- hotrods-network
volumes:
- pgadmin_data:/var/lib/pgadmin
# JBoss EAP 7 application server (optional for local development)
jboss-eap:
image: jboss/wildfly:20.0.1.Final
container_name: hotrods-eap
environment:
- WILDFLY_USER=admin
- WILDFLY_PASS=admin123
ports:
- "8080:8080"
- "9990:9990"
depends_on:
- postgres
networks:
- hotrods-network
volumes:
- ./target/hotrods-car-repair.war:/opt/jboss/wildfly/standalone/deployments/hotrods-car-repair.war
- ./database/wildfly-config:/opt/jboss/wildfly/standalone/configuration/custom
command: >
/bin/bash -c "
/opt/jboss/wildfly/bin/add-user.sh admin admin123 --silent &&
/opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
"
volumes:
postgres_data:
driver: local
pgadmin_data:
driver: local
networks:
hotrods-network:
driver: bridge