-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 852 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 852 Bytes
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
version: '3'
volumes:
ohp-database:
services:
postgres-server:
image: postgres
environment:
- POSTGRES_PASSWORD=${ADMIN_JWT_SECRET}
volumes:
- ohp-database:/var/lib/postgresql/data/
restart: always
strapi-server:
depends_on:
- postgres-server
image: ohp/strapi-server
environment:
- DATABASE_CLIENT=postgres
- DATABASE_URL=postgres://postgres:${ADMIN_JWT_SECRET}@postgres-server:5432/postgres
- NODE_ENV=production
ports:
- 1337:1337
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:1337/ || exit 1']
interval: 3s
retries: 5
start_period: 30s
labels:
- autoheal=true
restart: always
autoheal:
image: willfarrell/autoheal:1.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always