-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
39 lines (37 loc) · 924 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
version: '3.9'
services:
postgres:
image: postgres:14.6-alpine3.17
restart: on-failure
volumes:
- ../tmp/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: my_user
POSTGRES_PASSWORD: my_password
POSTGRES_DB: my_db
ports:
- 54322:5432
healthcheck:
test: [ "CMD", "pg_isready", "-U", "my_user", "-d", "my_db" ]
interval: 5s
timeout: 5s
retries: 20
redis:
image: redis:6.2.6-alpine3.14
restart: on-failure
volumes:
- ../tmp/redis:/data
ports:
- 63799:6379
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 20
# Uncomment this section if you want to use mongo
# mongo:
# image: mongo:6.0.4-jammy
# restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: mongo_user
# MONGO_INITDB_ROOT_PASSWORD: mongo_password