Skip to content

Commit 31965c9

Browse files
committed
add local dev docker-compose.yml
1 parent fc94ab8 commit 31965c9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: "3"
2+
services:
3+
postgres:
4+
container_name: quizhub-postgres
5+
image: postgres:16.1-alpine3.19
6+
restart: always
7+
environment:
8+
POSTGRES_DB: quizhub-dev
9+
POSTGRES_USER: postgres
10+
POSTGRES_PASSWORD: password
11+
PGDATA: /var/lib/postgresql/data
12+
volumes:
13+
- ./data:/var/lib/postgresql/data
14+
ports:
15+
- "172.17.0.1:5432:5432"
16+
17+
pgadmin4:
18+
container_name: quizhub-pgadmin4
19+
image: elestio/pgadmin:latest
20+
restart: always
21+
environment:
22+
PGADMIN_DEFAULT_USERNAME: wassim
23+
PGADMIN_DEFAULT_EMAIL: wassimrached@gmail.com
24+
PGADMIN_DEFAULT_PASSWORD: password
25+
PGADMIN_LISTEN_PORT: 7777
26+
ports:
27+
- "172.17.0.1:7777:7777"
28+
volumes:
29+
- ./servers.json:/pgadmin4/servers.json

0 commit comments

Comments
 (0)