-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
102 lines (96 loc) · 2.26 KB
/
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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
notify:
container_name: notify
restart: unless-stopped
build:
context: ./
dockerfile: ./Dockerfile.dev
depends_on:
- redis
- postgres
ports:
- '${APP_PORT}:${APP_PORT}'
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
networks:
- notify-network
environment:
- CHOKIDAR_USEPOLLING=true
redis:
image: 'redis:7.2.5'
container_name: redis
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD} --port ${REDIS_PORT} --appendonly yes --replica-read-only no
ports:
- '${REDIS_PORT}:${REDIS_PORT}'
networks:
- notify-network
volumes:
- 'redis-data:/data'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 3
postgres:
image: 'postgres:16-alpine'
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_HOST: ${DB_HOST}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- '${DB_PORT}:${DB_PORT}'
networks:
- notify-network
volumes:
- 'postgres-data:/var/lib/postgresql/data'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}']
interval: 30s
timeout: 10s
retries: 5
redis-commander:
container_name: redis-commander
image: rediscommander/redis-commander:latest
restart: unless-stopped
depends_on:
- redis
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- '8081:8081'
networks:
- notify-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8081/']
interval: 30s
timeout: 10s
retries: 3
mailhog:
container_name: mailhot
restart: unless-stopped
image: mailhog/mailhog
ports:
- '1025:1025'
- '8025:8025'
networks:
- notify-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8025/']
interval: 30s
timeout: 10s
retries: 3
volumes:
redis-data:
driver: local
postgres-data:
driver: local
networks:
notify-network:
driver: bridge