-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 1.06 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
version: '3.8'
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:
- postgres-data:/var/lib/postgresql/data/
# start Redis, and ensure that data is stored to a mounted volume
redis:
image: 'redis:alpine'
environment:
- REDIS_PASSWORD=rpass
command: ["redis-server", "--requirepass", "$REDIS_PASSWORD"]
ports:
- "6379:6379"
restart: always
volumes:
- redis-data:/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:
- mariadb-data:/docker-entrypoint-initdb.d
volumes:
postgres-data:
redis-data:
mariadb-data: