generated from nihalgonsalves/node-typescript-eslint-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
43 lines (39 loc) · 969 Bytes
/
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
43
# base file, extended either for local or devcontainer usage
name: expenses-dev
services:
postgres:
image: "postgres:17-alpine"
environment:
# server
POSTGRES_PASSWORD: postgres
# for psql executed inside the container
PGUSER: postgres
PGPASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgresql:/var/lib/postgresql/data
- ./infra/postgres-init.local.sql:/docker-entrypoint-initdb.d/init.sql
expose:
- 5432
redis:
image: "redis:7-alpine"
expose:
- 6379
frankfurter:
depends_on:
postgres:
condition: service_healthy
image: hakanensari/frankfurter
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/frankfurter
mailpit:
image: axllent/mailpit
expose:
- 8025 # web
- 1025 # smtp
volumes:
postgresql: