-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
58 lines (55 loc) · 1.48 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
version: "3"
services:
principal:
build: ./app/frontend
image: application
container_name: appweb
restart: always
ports:
- 80:80
- 443:443
eReports:
build: ./oracle-client
image: oracle-client
container_name: eReports
volumes:
- ./eReports:/eReports
depends_on:
- database-oracle
- mongodb
networks:
- myapp
ports:
- 9000:9000
command: bash -c "sleep 90; cd /eReports && npm i && npm install -g nodemon && npm start"
restart: always
database-oracle:
build: ./db-oracle
image: database-oracle
container_name: db-oracle
restart: always
ports:
- "49160:22"
- 49161:1521
- 8080:8080
environment:
- ORACLE_ENABLE_XDB=true
- ORACLE_ALLOW_REMOTE=true
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- TZ=America/Sao_Paulo
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
networks:
- myapp
command: sh -c "ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && mongod --smallfiles --logpath=/dev/null"
restart: always
networks:
myapp:
driver: bridge