forked from coldbox-modules/cborm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (29 loc) · 872 Bytes
/
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
version: "3.9"
services:
# MySQL Server 8
mysql:
platform: linux/x86_64 # Needed for Mac's on the M1 chip
image: mysql:8
ports:
- "4306:3306"
environment:
MYSQL_DATABASE: "coolblog"
MYSQL_ROOT_PASSWORD: "mysql"
volumes:
# Store the data locally
- .db/mysql8/data:/var/lib/mysql
# You can uncomment and it will seed the db with our prepared sql data
- ./test-harness/tests/resources:/docker-entrypoint-initdb.d
## PostgreSQL
postgresql:
platform: linux/x86_64 # Needed for Mac's on the M1 chip
image: postgres:12
environment:
POSTGRES_PASSWORD: "cborm"
POSTGRES_USER: "cborm"
POSTGRES_DB: "coolblog"
ports:
- 5432:5432
volumes:
- .db/postgres/data:/var/lib/postgresql/data
- ./test-harness/tests/resources/postgresql:/docker-entrypoint-initdb.d