-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 860 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
39
version: '3'
services:
st-projets:
build:
context: .
dockerfile: Dockerfile
restart: on-failure
volumes:
- user-avatars:/app/public/user-avatars
- attachments:/app/private/attachments
ports:
- 3000:1337
environment:
- BASE_URL=http://localhost:3000
- DATABASE_URL=postgresql://postgres@postgres/projets
- SECRET_KEY=notsecretkey
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
restart: on-failure
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=projets
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d projets']
interval: 10s
timeout: 5s
retries: 5
volumes:
user-avatars:
attachments:
db-data: