-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
51 lines (51 loc) · 1.32 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
51
services:
app:
build: .
command: sh -c 'php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000'
ports: [ 8000:8000 ]
init: true
environment:
- APP_ENV=local
- APP_KEY=12345678901234567890abcdefabcdea
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost:8000/
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_DATABASE=pandora
- DB_USERNAME=pandora
- DB_PASSWORD=pandora
- LOGIN_API_URL=http://login:7002
- LOGIN_FRONTEND_URL=http://localhost:7002
- PLS_API_URL=https://pls.datasektionen.se/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=pandora
- POSTGRES_USER=pandora
- POSTGRES_DB=pandora
healthcheck:
test:
- "CMD-SHELL"
- "sh -c 'pg_isready -d pandora -U pandora'"
interval: 1s
timeout: 5s
retries: 5
start_period: 10s
login:
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan
ports: [ 7002:7002 ]
environment:
- KTH_ID=mathm