-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (50 loc) · 1.17 KB
/
docker-compose.yaml
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
services:
db:
image: "postgres:16.3"
restart: always
command: ["postgres", "-c", "log_statement=all"]
environment:
POSTGRES_DB: findmyprofessors_api_development
POSTGRES_USER: api
POSTGRES_PASSWORD: test
ports:
- "5432:5432"
volumes:
- .server/postgres-data:/var/lib/postgresql/data
- .server/postgres-logs:/logs:z
- ./scripts/init-database.sh:/docker-entrypoint-initdb.d/init-database.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
mailer:
image: mailtutan/mailtutan:latest
restart: unless-stopped
ports:
- 1080:1080
- 1025:1025
api:
restart: always
build:
context: ./api
dockerfile: Dockerfile
ports:
- 8080:8080
env_file:
- api/.docker.env
depends_on:
- db
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/var/lib/pgadmin
- ./scripts/servers.json:/pgadmin4/servers.json
volumes:
pgadmin: