-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
66 lines (61 loc) · 1.7 KB
/
compose.yaml
File metadata and controls
66 lines (61 loc) · 1.7 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
nginx:
container_name: ce-nginx
image: nginx:1.28-bookworm
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/sites-enabled/:/etc/nginx/sites-enabled/:ro
- ./nginx/includes/:/etc/nginx/includes/:ro
- ./certbot/html/:/var/www/letsencrypt/:ro
- ./certbot/letsencrypt/:/etc/letsencrypt/:ro
- ./laravel/:/var/www/html/:ro
- ./browseraudit/:/var/www/browseraudit/:ro
- ./php-fpm/socket/:/var/run/php/:rw
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "80:80"
- "443:443"
depends_on:
- php-fpm
- memcached
certbot:
build:
context: ./certbot
dockerfile: ../certbot/Dockerfile
volumes:
- ./certbot/html/:/var/www/html/:rw
- ./certbot/letsencrypt/:/etc/letsencrypt/:rw
command: certonly --config /etc/letsencrypt/certbot.conf
php-fpm:
container_name: ce-php-fpm
build:
context: ./laravel
dockerfile: ../laravel/Dockerfile
volumes:
- ./laravel/:/var/www/html/:rw
- ./php-fpm/config:/etc/php/8.4/fpm/:ro
- ./php-fpm/socket/:/run/php/:rw
- ./log/php-fpm/:/var/log/php-fpm/:rw
command: php-fpm -y /etc/php/8.4/fpm/php-fpm.conf -c /etc/php/8.4/fpm/php.ini
laravel:
container_name: ce-laravel
build:
context: ./laravel
dockerfile: ../laravel/Dockerfile
volumes:
- ./laravel/:/var/www/html:rw
ports:
- "8000:8000"
command: "/var/www/html/boot.sh"
memcached:
container_name: ce-memcached
image: memcached:alpine3.22
ports:
- "11211:11211"
npm:
image: node:lts-alpine3.22
working_dir: /app
volumes:
- ./laravel/:/app
entrypoint: npm