-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 927 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
services:
laravel-app:
platform: linux/x86_64
image: php-laravel-test:latest
restart: always
ports:
- 8000:8000
networks:
- laravel-app
environment:
- DB_DATABASE
- DB_PORT
- DB_USERNAME
- DB_PASSWORD
db-server:
platform: linux/x86_64
image: mysql:5.7-oracle
command: --default-authentication-plugin=mysql_native_password
ports:
- 33060:3306
environment:
- MYSQL_DATABASE=db_laravel
- MYSQL_ROOT_PASSWORD=Ch4ng3me!@
volumes:
- ./db:/var/lib/mysql
networks:
- laravel-app
cache-server:
platform: linux/x86_64
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
command: redis-server --save 20 1 --loglevel warning --requirepass Ch4ng3me!@
volumes:
- cache:/data
networks:
- laravel-app
networks:
laravel-app:
volumes:
cache:
driver: local