forked from Bottelet/DaybydayCRM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.18 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
version: "2"
services:
php:
container_name: flarepoint-php
build:
context: .
dockerfile: .docker/flarepoint-php/Dockerfile
volumes:
- .:/var/www/html
environment:
- APP_ENV=local
- APP_DEBUG=true
- APP_KEY=i53weLzCSdunQzNc2SXR2AE9XJVDuNaq
- DB_HOST=db
- DB_DATABASE=flarepoint
- DB_USERNAME=root
- DB_PASSWORD=root
ports:
- 9000
depends_on:
- db
db:
container_name: flarepoint-db
image: mysql:latest
volumes:
- .docker/flarepoint-db/mysql:/var/lib/mysql
- .docker/flarepoint-db/db/:/docker-entrypoint-initdb.d/
ports:
- 3307:3306
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=flarepoint
- MYSQL_USER=root
- MYSQL_PASSWORD=root
nginx:
container_name: flarepoint-nginx
image: nginx:latest
links:
- php
ports:
- 8000:80
volumes:
- .docker/flarepoint-nginx/nginx-dev.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.0.0/16
gateway: 172.16.0.1