-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
55 lines (54 loc) · 1.19 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
version: '3.3'
services:
postgres:
container_name: pgsql_db
image: postgres
volumes:
- ./environment/pgsql:/var/lib/postgresql/data
environment:
- POSTGRES_DB=database
- POSTGRES_USER=root
- POSTGRES_PASSWORD=admin
ports:
- 5432:5432
mysql:
image: mysql:5.7.23
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: database
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
# Where our data will be persisted
container_name: mysql_db
volumes:
- ./environment/mysql:/var/lib/mysql
# - ./docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
dev:
redis:
container_name: redis_db
image: redis:latest
ports:
- 6379:6379
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=admin
ports:
- 8081:8081
depends_on:
- redis
networks:
dev:
driver: bridge
volumes:
redis-data:
# dbdata:
# driver: local