-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
81 lines (75 loc) · 1.88 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
# ------------------------------------------------------------------------------
# These images must be built in advance, or docker-compose will build them.
# cd database/ol7_19
# docker build -t ol7_19:latest .
#
# cd ords/ol7_ords
# docker build -t ol7_ords:latest .
#
# Run it.
# docker-compose up
# ------------------------------------------------------------------------------
services:
# ORDS service
ords:
container_name: apex_ords
build:
context: ./ol7_ords/
dockerfile: Dockerfile
depends_on:
- db
image: ol7_ords:latest
volumes:
- ./volumes/ol7_19_ords_tomcat:/u01/config/instance1
environment:
- DB_HOSTNAME=db
- DB_PORT=1521
- DB_SERVICE=pdb1
- APEX_PUBLIC_USER_PASSWORD=ApexPassword1
- APEX_TABLESPACE=APEX
- TEMP_TABLESPACE=TEMP
- APEX_LISTENER_PASSWORD=ApexPassword1
- APEX_REST_PASSWORD=ApexPassword1
- PUBLIC_PASSWORD=ApexPassword1
- SYS_PASSWORD=SysPassword1
- KEYSTORE_PASSWORD=KeystorePassword1
ports:
- "8080:8080"
- "8443:8443"
networks:
- oracle_network
restart: unless-stopped
# Oracle Database service
db:
container_name: apex_db
build:
context: ./ol7_19/
dockerfile: Dockerfile
image: ol7_19:latest
# Use persistent volume of your choice.
volumes:
- ./volumes/ol7_19_ords_db:/u02
environment:
- SYS_PASSWORD=SysPassword1
- PDB_PASSWORD=PdbPassword1
- APEX_EMAIL=me@example.com
- APEX_PASSWORD=ApexPassword1
ports:
- "1521:1521"
networks:
- oracle_network
restart: unless-stopped
# Portainer
portainer:
image: portainer/portainer
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000"
restart: unless-stopped
volumes:
portainer_data:
networks:
oracle_network: