-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 1.08 KB
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
services:
database:
container_name: cuisto-database
image: postgres:16.4-alpine
environment:
POSTGRES_DB: cuisto
POSTGRES_USER: user
POSTGRES_PASSWORD: password
restart: unless-stopped
healthcheck:
test:
- CMD-SHELL
- 'pg_isready -U user -d cuisto'
interval: 10s
timeout: 5s
retries: 5
volumes:
- cuisto_db_data:/var/lib/postgresql/data:rw
app:
container_name: cuisto-app
build:
context: .
dockerfile: Dockerfile
target: dev
volumes:
- .:/app
command: sleep infinity
depends_on:
- database
maildev:
image: maildev/maildev
restart: unless-stopped
environment:
- MAILDEV_WEB_PORT=1080
- MAILDEV_SMTP_PORT=1025
- MAILDEV_INCOMING_USER=user
- MAILDEV_INCOMING_PASS=password
volumes:
cuisto_db_data: