-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.21 KB
/
docker-compose.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
services:
web:
restart: always
image: ghcr.io/informatyzacja/parliamentary-system/web:main
ports:
- 3000:3000
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:3000']
interval: 10s
timeout: 5s
retries: 5
depends_on:
- api
env_file:
- .env
api:
restart: always
image: ghcr.io/informatyzacja/parliamentary-system/api:main
ports:
- 1337:1337
volumes:
- ${STRAPI_PUBLIC_FOLDER_FOR_DOCKER}:/app/apps/api/public/
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://localhost:1337']
interval: 10s
timeout: 5s
retries: 5
depends_on:
- postgres
env_file:
- .env
postgres:
restart: always
image: postgres:15-alpine
env_file:
- .env
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_FOLDER=${DATABASE_FOLDER}
healthcheck:
test: ['CMD', 'pg_isready', '-U', '${DATABASE_USERNAME}']
interval: 10s
timeout: 5s
retries: 5
volumes:
- $DATABASE_FOLDER:/var/lib/postgresql/data
volumes:
postgres:
driver: local