forked from koron/nvgd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 901 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
41
42
43
44
45
46
version: '3'
# To connect PostgreSQL:
# $ docker-compose exec postgres psql -U postgres
#
# To connect MySQL:
# $ docker-compose exec mysql mysql -u mysql -p=abcd1234
#
# To connect Redis:
# $ docker-compose exec redis redis-cli
services:
postgres:
image: postgres:13.1-alpine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
LANG: "C.UTF-8"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "abcd1234"
mysql:
image: mysql:5.6.50
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "abcd1234"
MYSQL_DATABASE: "mysql"
MYSQL_USER: "mysql"
MYSQL_PASSWORD: "abcd1234"
redis:
image: redis:6.0.9-alpine3.12
ports:
- "6379:6379"
volumes:
- redis_data:/data
volumes:
postgres_data:
mysql_data:
redis_data: