-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.09 KB
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
version: '3.7'
services:
proxy:
container_name: fn-proxy
image: nginx:latest
ports:
- "80:80"
volumes:
- .:/app
- ./app.conf:/etc/nginx/conf.d/default.conf
working_dir: /app
restart: always
networks:
- fn-nw
app:
container_name: fn-php
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- ./php.local.ini:/usr/local/etc/php/conf.d/php.local.ini
working_dir: /app
environment:
XDEBUG_CONFIG: idekey=PHPSTORM
PHP_IDE_CONFIG: serverName=serv
restart: always
networks:
- fn-nw
database:
container_name: fn-database
image: mysql/mysql-server:8.0
tmpfs:
- /var/lib/mysql:uid=999,gid=999
command: mysqld --default-authentication-plugin=mysql_native_password --max_connections=8096 --socket=/tmp/mysql.sock
ulimits:
nofile:
soft: 32768
hard: 65535
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ROOT_HOST: '%'
restart: always
ports:
- "3306:3306"
networks:
- fn-nw
networks:
fn-nw:
name: fn-nw