-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (35 loc) · 934 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
32
33
34
35
36
37
38
39
40
version: '3'
services:
# start Postgres, and ensure that data is stored to a mounted volume
postgres:
image: 'postgres:13.4'
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: celeritas
volumes:
- ./db-data/postgres/:/var/lib/postgresql/data/
# start Redis, and ensure that data is stored to a mounted volume
redis:
image: 'redis:alpine'
ports:
- "6379:6379"
restart: always
volumes:
- ./db-data/redis/:/data
# start MariaDB, and ensure that data is stored to a mounted volume
mariadb:
image: 'mariadb:10.6'
ports:
- "3306:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: celeritas
MYSQL_USER: mariadb
MYSQL_PASSWORD: password
volumes:
- ./db-data/mariadb:/docker-entrypoint-initdb.d