-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.2 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
app:
build:
context: .
target: local
# uncomment the following line if you want to run this in a production environment
# restart: always
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "443:443/udp" # HTTP/3
volumes:
- ./:/app
- caddy_data:/data
- caddy_config:/config
# comment the following line in production, it allows to have nice human-readable logs in dev
tty: true
environment:
CADDY_GLOBAL_OPTIONS: debug
networks:
- laravel
composer:
image: composer:2
volumes:
- ./:/app
working_dir: /app
entrypoint: [ "composer" ]
networks:
- laravel
npm:
image: node:20-alpine
volumes:
- ./:/app
working_dir: /app
entrypoint: [ "npm" ]
networks:
- laravel
npx:
image: node:20-alpine
volumes:
- ./:/app
working_dir: /app
entrypoint: [ "npx" ]
networks:
- laravel
networks:
laravel:
volumes:
caddy_data:
caddy_config: