-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (46 loc) · 1.41 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
version: '3.7'
services:
mysql:
image: mysql/mysql-server:8.0.23 # use this because it supports ARM64 architecture for M1 Mac
command: --default-authentication-plugin=mysql_native_password
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_HOST=%
setup:
build:
context: .
dockerfile: ./scripts/Dockerfile-setup
depends_on:
- oracle
- sqlserver
links:
- mysql:mysql
- sqlserver:sqlserver
# - oracle:oracle
volumes:
- ./:/app:delegated
command:
- ./scripts/setup_local.sh
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04 # use this because it supports ARM64 architecture for M1 Mac
user: root
ports:
- "31433:1433"
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=TerpalRocks!
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$$MSSQL_SA_PASSWORD" -Q "SELECT 1" || exit 1
interval: 30s
timeout: 30s
retries: 3
oracle:
image: quillbuilduser/oracle-18-xe-micro-sq
ports:
- "31521:1521"
# Opatch is an internal java-based daemon in the Oracle container that updates components, don't really need it here. Reduce it's memory settings.
environment:
- OPATCH_JRE_MEMORY_OPTIONS=-Xms128m -Xmx256m -XX:PermSize=16m -XX:MaxPermSize=32m -Xss1m