forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.01 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
version: "3.2"
services:
php:
restart: unless-stopped
tty: true
build:
context: ./docker/php
environment:
- DB_DRIVER=mysql
- DB_HOST=ufmysql
- DB_PORT=3306
- DB_NAME=userfrosting
- DB_USER=docker
- DB_PASSWORD=secret
volumes:
- .:/app
- ./docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- backend
nginx:
restart: unless-stopped
tty: true
ports:
- "8591:80"
- "8592:443"
build:
context: ./docker/nginx
volumes:
- .:/app
depends_on:
- php
- ufmysql
networks:
- frontend
- backend
ufmysql:
image: mysql:5.7
networks:
- backend
environment:
- MYSQL_DATABASE=userfrosting
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=docker
- MYSQL_PASSWORD=secret
ports:
- 8593:3306
volumes:
- userfrosting-db:/var/lib/mysql
volumes:
userfrosting-db:
driver: local
networks:
frontend:
backend: