-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
96 lines (90 loc) · 1.92 KB
/
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
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
version: '3.2'
services:
app: &app
build: .
image: democraciaenred/participes-app:testing
environment:
APP_ENV: staging
APP_NAME: Participes
APP_DEBUG: 'true'
APP_URL: http://localhost
NOCAPTCHA_SECRET:
NOCAPTCHA_SITEKEY:
MAPBOX_API_KEY:
MAPBOX_MAP_STYLE:
CONTAINER_ROLE: app
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: laravel
DB_USERNAME: laravel
DB_PASSWORD: laravel
QUEUE_CONNECTION: redis
REDIS_CLIENT: predis
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_QUEUE: mailer,default
MAIL_MAILER: smtp
MAIL_HOST:
MAIL_PORT:
MAIL_USERNAME:
MAIL_PASSWORD:
MAIL_ENCRYPTION:
MAIL_FROM_ADDRESS:
MAIL_FROM_NAME:
volumes:
- public_dir:/var/www/html
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
ports:
- 9000:9000
depends_on:
- 'nginx'
- 'mysql'
- 'redis'
restart: unless-stopped
networks:
- participes
nginx:
image: nginx
ports:
- "8000:80"
- "443:443"
volumes:
- type: volume
source: public_dir
target: /var/www/html
volume:
nocopy: true
- type: bind
source: ./docker/nginx/conf.d/app.conf
target: /etc/nginx/conf.d/default.conf
restart: unless-stopped
networks:
- participes
# queue:
# <<: *app
redis:
image: redis
ports:
- 6379:6379
volumes:
- redis:/data
networks:
- participes
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: 31415926
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
restart: unless-stopped
networks:
- participes
volumes:
public_dir:
redis:
networks:
participes:
driver: bridge