-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
50 lines (50 loc) · 1.31 KB
/
compose.yaml
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
services:
app:
build: .
command: sh -c 'php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000'
ports: [ 8000:8000 ]
env_file: .env
init: true
environment:
- APP_ENV=development
- APP_KEY=12345678901234567890abcdefabcdea
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost:8000/
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_DATABASE=skywhale
- DB_USERNAME=skywhale
- DB_PASSWORD=skywhale
- LOGIN_API_URL=http://login:7002
- LOGIN_FRONTEND_URL=http://localhost:7002
- PLS_API_URL=http://login:7001/api
- HODIS_API_URL=https://hodis.datasektionen.se
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: sync
path: .
target: /app
ignore: [vendor/]
- action: rebuild
path: composer.json
db:
image: postgres:16-alpine
environment:
- POSTGRES_PASSWORD=skywhale
- POSTGRES_USER=skywhale
- POSTGRES_DB=skywhale
healthcheck:
test:
- "CMD-SHELL"
- "sh -c 'pg_isready -d skywhale -U skywhale'"
interval: 1s
timeout: 5s
retries: 5
start_period: 10s
login:
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan
ports: [ 7002:7002 ]