-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
47 lines (43 loc) · 1.09 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
version: '2'
services:
app:
build: .
environment:
NGINX_WEBROOT: /semart/public
APP_ENV: dev
APP_SECRET: 2a46d7812648fc10df43fa9431d5f75d
DATABASE_DRIVER: pdo_mysql
DATABASE_SERVER_VERSION: 5.7
DATABASE_CHARSET: utf8mb4
DATABASE_URL: mysql://root:semart@db:3306/semart
REDIS_URL: redis://session
volumes:
- .:/semart
links:
- session
- db
depends_on:
- session
balancer:
image: dockercloud/haproxy:latest
ports:
- 9876:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- app
depends_on:
- app
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: semart
adminer:
image: adminer:latest
ports:
- 6789:8080
links:
- db
session:
image: redis:alpine