-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 921 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
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_PASSWORD: "root123456"
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
- /var/log/postgresql:/var/lib/postgresql/log
ports:
- 5432:5432
networks:
- pub-network
pgadmin:
image: dpage/pgadmin4
container_name: pgAdmin
restart: always
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root123456
networks:
- pub-network
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- /opt/redis/data:/data
- /opt/redis/conf/redis.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf
networks:
- pub-network
networks:
pub-network:
name: pub-network