-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
59 lines (55 loc) · 1.38 KB
/
docker-compose.dev.yml
File metadata and controls
59 lines (55 loc) · 1.38 KB
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
55
56
57
58
59
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: wallet_postgres_dev
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-wallet_user}
POSTGRES_PASSWORD: ${DB_PASSWORD:-wallet_pass}
POSTGRES_DB: ${DB_NAME:-wallet_db}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data_dev:/var/lib/postgresql/data
networks:
- wallet_network_dev
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wallet_user -d wallet_db"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: wallet_api_dev
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:8080"
environment:
APP_ENV: development
APP_PORT: 8080
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${DB_USER:-wallet_user}
DB_PASSWORD: ${DB_PASSWORD:-wallet_pass}
DB_NAME: ${DB_NAME:-wallet_db}
DB_SSLMODE: disable
JWT_SECRET: ${JWT_SECRET:-dev-secret}
JWT_ACCESS_EXPIRY: ${JWT_ACCESS_EXPIRY:-15m}
JWT_REFRESH_EXPIRY: ${JWT_REFRESH_EXPIRY:-168h}
volumes:
- .:/app
- /app/tmp
depends_on:
postgres:
condition: service_healthy
networks:
- wallet_network_dev
volumes:
postgres_data_dev:
driver: local
networks:
wallet_network_dev:
driver: bridge