-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1012 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
51
version: "2"
services:
nginx:
image: nginx:1.17.8
container_name: "laravel-nginx"
ports:
- "8080:80"
volumes:
- ./src:/src
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
php:
build: ./php
container_name: "laravel-php"
volumes:
- ./src:/src
working_dir: /src
mysql:
image: mysql:8.0.19
container_name: "laravel-mysql"
restart: always
environment:
MYSQL_DATABASE: root
MYSQL_ROOT_PASSWORD: root
ports:
- 13306:3306
volumes:
- ./mysql:/etc/mysql/conf.d
postgres:
restart: always
image: postgres:11-alpine
container_name: "laravel-postgres"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 15432:5432
volumes:
- ./postgresql:/var/lib/postgresql/data
redis:
image: redis:alpine
container_name: "laravel-redis"
ports:
- 16379:6379
volumes:
- ./redis:/data
command: redis-server --appendonly yes