forked from Signbank/FinSL-signbank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 934 Bytes
/
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
version: "3"
services:
backend: &backend
stdin_open: true
tty: true
build: .
env_file: .env
environment:
- DEBUG=true
- DATABASE_URL=postgres://postgres:postgres@database/postgres
ports:
- 8000:8000
volumes:
- "./:/app:z"
links:
- database
- mail
depends_on:
database:
condition: service_healthy
database:
image: postgres:14
environment:
- "POSTGRES_PASSWORD=postgres"
ports:
- 5432:5432
healthcheck:
test: ["CMD", "/usr/bin/pg_isready", "-h", "database", "-p", "5432", "-U", "postgres", "-d", "postgres"]
interval: 3s
timeout: 2s
retries: 5
mail:
image: djfarrelly/maildev
ports:
- 1025:1025
command: bin/maildev --web 1025 --smtp 25