-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·50 lines (46 loc) · 975 Bytes
/
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:
container_name: app
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/var/www/laravel-app
- ./vendor:/var/www/laravel-app/vendor
working_dir: /var/www/laravel-app
networks:
- bridge
web:
container_name: web
image: 'nginx:alpine'
ports:
- '80:80'
volumes:
- .:/var/www/laravel-app
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
networks:
- bridge
redis:
container_name: redis
image: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- '6379:6379'
networks:
- bridge
mysql:
container_name: db
image: 'mysql:8.4'
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- bridge
networks:
bridge: