-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
45 lines (42 loc) · 944 Bytes
/
compose.dev.yml
File metadata and controls
45 lines (42 loc) · 944 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
40
41
42
43
44
45
name: ferias-dev
services:
web:
build:
context: ./web
target: dev
ports:
- "${WEB_PORT:-8000}:8000"
env_file:
- .env
- .env.dev
environment:
- DB_HOST=database
- DB_PORT=5432
- RUN_MAKEMIGRATIONS=True
- INIT_WAGTAIL=True
- LOAD_INITIAL_FIXTURES=True
- CREATE_SUPERUSER=True
volumes:
- ./web:/app
depends_on:
database:
condition: service_healthy
restart: true
database:
build:
context: ./database
env_file:
- .env
environment:
- POSTGRES_DB=${DB_NAME:-ferias}
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- database_data:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DB_USER:-postgres}", "-d", "${DB_NAME:-ferias}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
database_data: