-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
49 lines (47 loc) · 1.06 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
version: '3.7'
services:
db:
image: postgres:13-alpine
container_name: ${COMPOSE_PROJECT_NAME}-db
networks:
- default
volumes:
- ./data/db:/var/lib/postgresql/data
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U listmonk']
interval: 10s
timeout: 5s
retries: 6
app:
container_name: ${COMPOSE_PROJECT_NAME}-app
image: listmonk/listmonk:latest
networks:
- default
env_file:
- .env
depends_on:
- db
volumes:
- ./data/app/config/config.toml:/listmonk/config.toml
- ./data/app/uploads:/listmonk/uploads
ports:
- 9000:9000
restart: unless-stopped
healthcheck:
test:
[
'CMD',
'wget',
'--spider',
'--auth-no-challenge',
'--http-user=${LISTMONK_USERNAME}',
'--http-password=${LISTMONK_PASSWORD}',
'http://localhost:9000/api/health'
]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s