-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
42 lines (40 loc) · 1019 Bytes
/
docker-compose.dev.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
version: "3"
services:
postgres:
container_name: quizhub-postgres
image: postgres:16.1-alpine3.19
restart: always
environment:
POSTGRES_DB: quizhub-dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
PGDATA: /var/lib/postgresql/data
volumes:
- ./volumes/data:/var/lib/postgresql/data
ports:
- "172.17.0.1:5432:5432"
pgadmin4:
container_name: quizhub-pgadmin4
image: elestio/pgadmin:latest
restart: always
environment:
PGADMIN_DEFAULT_USERNAME: wassim
PGADMIN_DEFAULT_EMAIL: wassimrached@gmail.com
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_PORT: 7777
ports:
- "172.17.0.1:7777:7777"
volumes:
- ./volumes/servers.json:/pgadmin4/servers.json
quizhub-api:
container_name: quizhub-api
build:
context: .
dockerfile: Dockerfile
restart: always
# environment:
# SPRING_PROFILES_ACTIVE: dev
ports:
- "8080:8080"
depends_on:
- postgres