-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (51 loc) · 1.24 KB
/
docker-compose.yaml
File metadata and controls
54 lines (51 loc) · 1.24 KB
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
services:
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_DATABASE: web_api
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- web_api
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: "behnam@gmail.com"
PGADMIN_DEFAULT_PASSWORD: "root"
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "8070:80"
networks:
- web_api
depends_on:
- postgres
restart: unless-stopped
redis:
image: redis:latest
container_name: redis
command: ["redis-server", "/etc/redis/redis.conf"]
volumes:
- ./redis/redis.conf:/etc/redis/redis.conf
- redis:/etc/redis.conf
- redis:/data
networks:
- web_api
ports:
- "6379:6379"
volumes:
postgres:
pgadmin:
redis:
logs:
networks:
web_api:
driver: bridge