-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.21 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
services:
# Oracle Database service (Oracle Database Free 23ai - supports ARM64 and x86_64)
oracle-db:
image: gvenzl/oracle-free:latest
container_name: photoalbum-oracle
environment:
- ORACLE_PASSWORD=photoalbum
- APP_USER=photoalbum
- APP_USER_PASSWORD=photoalbum
ports:
- "1521:1521"
volumes:
- oracle_data:/opt/oracle/oradata
- ./oracle-init:/container-entrypoint-initdb.d
networks:
- photoalbum-network
healthcheck:
test: ["CMD-SHELL", "healthcheck.sh"]
interval: 30s
timeout: 10s
retries: 15
start_period: 180s
# Photo Album Java Application
photoalbum-java-app:
build:
context: .
dockerfile: Dockerfile
container_name: photoalbum-java-app
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@oracle-db:1521/FREEPDB1
- SPRING_DATASOURCE_USERNAME=photoalbum
- SPRING_DATASOURCE_PASSWORD=photoalbum
ports:
- "8080:8080"
depends_on:
oracle-db:
condition: service_healthy
networks:
- photoalbum-network
restart: on-failure
volumes:
oracle_data:
networks:
photoalbum-network:
driver: bridge