-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (45 loc) · 1001 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.4"
services:
srvpts:
container_name: dbpt
image: postgres
env_file: ./envs/dbpt
networks:
- host
ports:
- 5432:5432
volumes:
- ~/volumes/postgresql:/var/lib/postgresql/data
restart: always
srvpga:
container_name: pgadmin
image: dpage/pgadmin4
env_file: ./envs/pga
ports:
- 15432:80
networks:
- host
srvredis:
container_name: redis
image: redis:6.0
ports:
- 6379:6379
networks:
- host
volumes:
- ~/volumes/redis:/data
web:
build: .
container_name: web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- srvpts
networks:
- host
networks:
host:
driver: bridge