-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
49 lines (39 loc) · 861 Bytes
/
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
version: "3.9"
services:
web:
container_name: web
build: .
ports:
- "8000:8000"
environment:
- DB_URL="postgresql://transitpost:transitpost@postgres:5432/transitpost"
volumes:
- ./app:/code/app
- ./static:/code/static
- ./templates:/code/templates
depends_on:
- pgadmin
postgres:
image: postgres
restart : always
environment:
POSTGRES_USER: transitpost
POSTGRES_PASSWORD: transitpost
POSTGRES_DB: transitpost
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
restart: unless-stopped
volumes:
pgdata: {}
# 172.26.64.1