-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.04 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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: openaed-api
restart: unless-stopped
env_file:
- .env
volumes:
- .:/var/www/html
- /var/www/html/vendor # prevent local vendor override
ports:
- "8000:8000"
command: php artisan serve --host=0.0.0.0 --port=8000
extra_hosts:
- "nominatim.openaed.org:host-gateway"
scheduler:
build:
context: .
dockerfile: Dockerfile
container_name: openaed-scheduler
restart: unless-stopped
env_file:
- .env
volumes:
- .:/var/www/html
- /var/www/html/vendor
depends_on:
- app
entrypoint:
[
"sh",
"-c",
"while :; do php artisan schedule:run >> /dev/null 2>&1; sleep 60; done",
]
extra_hosts:
- "nominatim.openaed.org:host-gateway"