-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (103 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
103 lines (103 loc) · 2.29 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "2"
services:
frontend:
image: node:10.9-stretch
working_dir: /home/node/app
environment:
- NODE_ENV=dev
- HOST=frontend
volumes:
- ../lintol-frontend:/home/node/app
ports:
- "8080:8080"
command: "npm start"
db:
image: postgres
volumes:
- ./docker/storage/db:/data
environment:
PGDATA: /data
env_file:
- ./docker/config/laravel.env
phpfpm:
#image: test_artisan_worker:latest
build:
context: ./infrastructure/containers/phpfpm
dockerfile: Dockerfile.debug
links:
- db:db
- redis:redis
volumes:
- .:/data/www
- .:/var/www/app
- ./docker/storage/phpfpm/xdebug:/tmp/xdebug
env_file:
- ./docker/config/laravel.env
- ./docker/config/redis.env
environment:
REDIS_HOST: "redis"
REDIS_PORT: 6379
APP_LOG: "errorlog"
LOG_CHANNEL: "errorlog"
nginx:
image: nginx:stable
volumes:
- ./infrastructure/containers/nginx/laravel-dev:/etc/nginx/conf.d/default.conf
- ./docker/certificates:/secrets
- .:/var/www/app
env_file:
- ./docker/config/laravel.env
ports:
- "8000:80"
links:
- phpfpm:phpfpm
environment:
LARAVEL_ROOT: "/var/www/app"
artisan_subscriber:
build:
context: ./infrastructure/containers/phpfpm
dockerfile: Dockerfile.debug
volumes:
- .:/var/www/app
env_file:
- ./docker/config/laravel.env
- ./docker/config/redis.env
environment:
REDIS_HOST: "redis"
REDIS_PORT: 6379
APP_LOG: "errorlog"
LOG_CHANNEL: "errorlog"
links:
- db:db
- redis:redis
entrypoint:
- php
- /var/www/app/artisan
command:
- "ltl:observe"
artisan_worker:
build:
context: ./infrastructure/containers/phpfpm
dockerfile: Dockerfile.debug
volumes:
- .:/var/www/app
env_file:
- ./docker/config/laravel.env
- ./docker/config/redis.env
environment:
REDIS_HOST: "redis"
REDIS_PORT: 6379
APP_LOG: "errorlog"
LOG_CHANNEL: "errorlog"
links:
- db:db
- redis:redis
entrypoint:
- php
- /var/www/app/artisan
command:
- "queue:work"
redis:
image: redis
env_file:
- ./docker/config/redis.env