-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (65 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
72 lines (65 loc) · 1.42 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
67
68
69
70
71
72
services:
app:
build:
context: . # Build context is the current directory
dockerfile: Dockerfile # Specify the Dockerfile
container_name: laravel_app
working_dir: /var/www/html
volumes:
- ./my-laravel/:/var/www/html
ports:
- "5173:5173"
networks:
- laravel
depends_on:
- composer
- db
- redis
environment:
- PHP_OPCACHE_VALIDATE_TIMESTAMPS=0
restart: unless-stopped
composer:
image: composer:2
container_name: laravel_composer
working_dir: /var/www/html
volumes:
- ./my-laravel/:/var/www/html
entrypoint: [ 'composer' ]
webserver:
image: nginx:alpine
container_name: laravel_nginx
volumes:
- ./my-laravel/:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8082:80"
depends_on:
- app
networks:
- laravel
db:
image: postgres:13-alpine
container_name: laravel_postgres
restart: unless-stopped
environment:
POSTGRES_DB: portal
POSTGRES_USER: administrator
POSTGRES_PASSWORD: password
ports:
- "5439:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- laravel
redis:
image: redis:alpine
container_name: laravel_redis
networks:
- laravel
ports:
- "6389:6379"
volumes:
postgres_data:
networks:
laravel:
driver: bridge