-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 965 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
52
53
54
55
version: '3.4'
volumes:
postgres-data:
driver: local
redis-data:
driver: local
services:
postgres:
image: postgres:10
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=catalog
- POSTGRES_USER=catalog_user
- POSTGRES_PASSWORD=catalog_pass
cache:
image: redis:4.0-alpine
command: --appendonly yes
volumes:
- redis-data:/data
ports:
- "6379:6379"
web:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./public:/usr/share/nginx/html
- ./docker/nginx:/etc/nginx/conf.d
depends_on:
- php
php:
build: ./docker/php
volumes:
- .:/var/www/html
depends_on:
- postgres
- cache
queue:
image: php:7.3-cli
working_dir: /var/www/app
command: php artisan queue:listen
volumes:
- .:/var/www/app
depends_on:
- postgres
- cache