-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1 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
version: '3.9'
services:
grade:
image: ${DOCKER_REGISTRY-}grade
build:
context: .
dockerfile: Grade/Dockerfile
ports:
- "8000:80"
networks:
- postgres-network
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USERNAME: "admin"
POSTGRES_PASSWORD: "admin"
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- pgconf:/etc/postgresql
- pglog:/var/log/postgresql
networks:
- postgres-network
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_USERNAME: "admin"
PGADMIN_DEFAULT_PASSWORD: "admin"
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
depends_on:
- postgres
networks:
- postgres-network
networks:
postgres-network:
driver: bridge
volumes:
pgdata:
driver: local
pgconf:
driver: local
pglog:
driver: local