-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
141 lines (128 loc) · 3.94 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
jur:
build: ./
# volumes:
# # - ./rest/public:/var/www/html/rest/public
# # - ./rest/storage:/var/www/html/rest/storage
# # - ./build:/var/www/html/public
# # - ./rest/composer.json:/var/www/html/rest/composer.json
# # - ./rest/artisan:/var/www/html/rest/artisan
# # - ./rest/.env:/var/www/html/rest/.env
# # - ./rest/phpunit.xml:/var/www/html/rest/phpunit.xml
# # - ./rest/app:/var/www/html/rest/app
# # - ./rest/bootstrap:/var/www/html/rest/bootstrap
# # - ./rest/config:/var/www/html/rest/config
# # - ./rest/database:/var/www/html/rest/database
# # - ./rest/resources:/var/www/html/rest/resources
# # - ./rest/routes:/var/www/html/rest/routes
# # - ./rest/tests:/var/www/html/rest/tests
# # - ./rest/vendor:/var/www/html/rest/vendor
# # - ./rest:/var/www/html
ports:
- "80:80"
links:
- db
- cache
environment:
APP_ENV: jur-mvp
APP_URL: http://localhost
APP_TIMEZONE: UTC
APP_KEY: Secret!
APP_LOCALE: en
APP_FALLBACK_LOCALE: en
API_NAME: jur
API_PREFIX: api/v1
API_VERSION: v1
API_DEBUG: 'true'
JUR_FE_URL: http://localhost
DB_CONNECTION: mysql
DB_HOST: db
DB_DATABASE: lumen
DB_USERNAME: lumen
DB_PASSWORD: secret
MEMCACHED_HOST: cache
CACHE_DRIVER: file
MAIL_DRIVER: smtp
MAIL_USERNAME: bad3282d3a5c38
MAIL_HOST: smtp.mailtrap.io
MAIL_PASSWORD: 63f73da428ac00
MAIL_PORT: 2525
HASHIDS_SALT: 0J3RGHY4TGH
HASHIDS_LENGTH: 6
HASHIDS_ALPHABET: abcedfghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPAQRSTUVWXYZ1234567890
# nginx:
# build: environment/nginx
# command: nginx -g "daemon off;"
# links:
# - php
# volumes:
# - ./rest/public:/var/www/html/rest/public
# - ./rest/storage:/var/www/html/rest/storage
# ports:
# - "80:80"
# php:
# build: environment/php
# volumes:
# - ./rest/composer.json:/var/www/html/rest/composer.json
# - ./rest/artisan:/var/www/html/rest/artisan
# - ./rest/.env:/var/www/html/rest/.env
# - ./rest/phpunit.xml:/var/www/html/rest/phpunit.xml
# - ./rest/app:/var/www/html/rest/app
# - ./rest/bootstrap:/var/www/html/rest/bootstrap
# - ./rest/config:/var/www/html/rest/config
# - ./rest/database:/var/www/html/rest/database
# - ./rest/resources:/var/www/html/rest/resources
# - ./rest/routes:/var/www/html/rest/routes
# - ./rest/storage:/var/www/html/rest/storage
# - ./rest/tests:/var/www/html/rest/tests
# - ./rest/vendor:/var/www/html/rest/vendor
# - ./rest/public:/var/www/html/rest/public
# # - ./rest:/var/www/html
# working_dir: /var/www/html/rest/public
# command: php-fpm
# links:
# - db
# - cache
# ports:
# - "9000:9000"
# environment:
# APP_ENV: jur-mvp
# APP_URL: http://localhost
# APP_TIMEZONE: UTC
# APP_KEY: Secret!
# APP_LOCALE: en
# APP_FALLBACK_LOCALE: en
# API_NAME: jur
# API_PREFIX: api/v1
# API_VERSION: v1
# API_DEBUG: 'true'
# JUR_FE_URL: https://test.jur.io
# DB_CONNECTION: mysql
# DB_HOST: db
# DB_DATABASE: lumen
# DB_USERNAME: lumen
# DB_PASSWORD: secret
# MEMCACHED_HOST: cache
# CACHE_DRIVER: file
# MAIL_DRIVER: smtp
# MAIL_USERNAME: bad3282d3a5c38
# MAIL_HOST: smtp.mailtrap.io
# MAIL_PASSWORD: 63f73da428ac00
# MAIL_PORT: 2525
# HASHIDS_SALT: 0J3RGHY4TGH
# HASHIDS_LENGTH: 6
# HASHIDS_ALPHABET: abcedfghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPAQRSTUVWXYZ1234567890
db:
image: mysql:5.7
ports:
- "3306:3306"
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: lumen
MYSQL_USER: lumen
MYSQL_PASSWORD: secret
cache:
image: memcached