-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.local.yml
83 lines (77 loc) · 1.79 KB
/
docker-compose.local.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
nestjs-boilerplate-api:
image: nestjs-boilerplate-api-local
container_name: nestjs-boilerplate-api-local
restart: always
build:
context: .
dockerfile: Dockerfile
target: development
env_file:
- .env.docker
ports:
- "3000:3000"
volumes:
- ./src:/app/src
command: pnpm start:dev
networks:
- nestjs-boilerplate-network
db:
image: postgres:16
container_name: nestjs-boilerplate-postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: nestjs_boilerplate
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
TZ: "UTC"
ports:
- "25432:5432"
networks:
- nestjs-boilerplate-network
redis:
image: redis/redis-stack:latest
restart: always
ports:
- "6379:6379"
- "8001:8001"
volumes:
- redis_data:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
environment:
REDIS_ARGS: "--requirepass redispass"
networks:
- nestjs-boilerplate-network
maildev:
build:
context: .
dockerfile: maildev.Dockerfile
ports:
- ${MAIL_CLIENT_PORT}:1080
- ${MAIL_PORT}:1025
networks:
- nestjs-boilerplate-network
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
ports:
- "18080:80"
volumes:
- pgadmin_data:/root/.pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: 12345678
PGADMIN_CONFIG_WTF_CSRF_ENABLED: "False"
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "False"
networks:
- nestjs-boilerplate-network
volumes:
postgres_data:
pgadmin_data:
redis_data:
networks:
nestjs-boilerplate-network:
driver: bridge