-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
128 lines (118 loc) · 3.31 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.5"
services:
postgres:
image: postgres:latest
restart: unless-stopped
networks:
- no-internet
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=db
mysql:
image: mysql:latest
restart: unless-stopped
networks:
- no-internet
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=mysql
# The oracle database may take longer to start.
# $> sqlplus system/oracle@oracle:1521/xe_pdb1
oracle:
image: gvenzl/oracle-xe:latest
restart: unless-stopped
networks:
- no-internet
ports:
- "1521:1521"
expose:
- 1521 # Oracle SQL*Net port
environment:
- ORACLE_PASSWORD=oracle # Password for SYS and SYSTEM
- ORACLE_DATABASE=xe_pdb1 # Name of the new pluggable database
# Uncomment this and modify butterfly service and init.sh to use a non-system user
# WARN: Non system users do not have access to functions like `dbms_pipe.receive_message(('a'),10) ` by default
# - APP_USER=oracle # Name of the new database schema user
# - APP_USER_PASSWORD=oracle # Password for the new database schema user
mssql:
image: mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
restart: unless-stopped
networks:
- no-internet
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=EJAZHEJZAHJEZ2193939219312@@@@dzadazd # Strong password is required, so I smashed my head on the keyboard
- MSSQL_PID=Evaluation
db2:
image: ibmcom/db2
restart: unless-stopped
networks:
- no-internet
privileged: true
ports:
- "50000:50000"
expose:
- 50000
environment:
- LICENSE=accept
- DB2INST1_PASSWORD=VeryStr0ngP@ssword
- DBNAME=testdb
butterfly:
image: our_butterfly
build: .
restart: unless-stopped
networks:
- no-internet
expose:
- 8881
- 8882
- 8883
- 8884
- 8885
- 8886
environment:
- PGPASSWORD=postgres
- PGHOST=postgres
- PGPORT=5432
- PGUSER=postgres
- PGDATABASE=db
- MYSQL_HOST=mysql
- MYSQL_PWD=mysql
- MYSQL_TCP_PORT=3306
- USER=root
- ORACLE_HOST=oracle
- ORACLE_PORT=1521
- ORACLE_USER=system
# - ORACLE_USER=oracle
- ORACLE_PASSWORD=oracle
- ORACLE_PDB=xe_pdb1
- MSSQL_HOST=mssql
- SA_PASSWORD=EJAZHEJZAHJEZ2193939219312@@@@dzadazd
- DB2_HOST=db2
- DB2_USER=db2inst1
- DB2_PASSWORD=VeryStr0ngP@ssword
- DB2_DATABASE=testdb
proxy:
image: nginx
volumes:
- ./proxy/templates:/etc/nginx/templates
- ./proxy/content:/usr/share/nginx/html:ro
ports:
- "8888:80"
restart: always
networks:
- no-internet
- internet
depends_on: [butterfly]
networks:
no-internet:
driver: bridge
internal: true
internet:
driver: bridge