-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.25 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
postgres:
container_name: ms_pg_sql
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
PGDATA: /var/lib/postgresql/data
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- microservices-net
restart: unless-stopped
mysql:
container_name: ms_mysql
image: mysql
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
expose:
- "3306"
volumes:
- mysql:/var/lib/mysql
networks:
microservices-net:
restart: unless-stopped
redis:
container_name: redis
image: redis/redis-stack-server
ports:
- 6379:6379
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
volumes:
- redis_data:/data
redis_insights:
container_name: redis_insights
image: redis/redisinsight:latest
restart: unless-stopped
depends_on:
- redis
ports:
- 5540:5540
volumes:
- redis_insights_data:/data
networks:
microservices-net:
driver: bridge
volumes:
postgres:
mysql:
redis_data:
redis_insights_data: