generated from anchan828/nest-lerna-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
41 lines (41 loc) · 986 Bytes
/
docker-compose.yaml
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
services:
mysql:
image: mysql:9.1.0
shm_size: 128mb
tmpfs: /var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 2s
retries: 10
example-db:
image: mysql:9.1.0
shm_size: 128mb
tmpfs: /var/lib/mysql
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 2s
retries: 10
postgres:
image: postgres:17.2
shm_size: 128mb
tmpfs: /var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root"]
interval: 2s
retries: 10