-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (44 loc) · 1009 Bytes
/
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
version: '3.5'
services:
nginx:
image: nginx:latest
depends_on:
- app
- node
ports:
- "8000:80"
volumes:
- .:/var/www/app:cached
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
app:
build:
context: .
dockerfile: Dockerfile
command: ["php-fpm"]
working_dir: /var/www/app
volumes:
- .:/var/www/app
- ./docker/app/fpm.conf:/usr/local/etc/php-fpm.d/zz-conf.conf
mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=pastebin
- MYSQL_USER=pastebin
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=secret
- TZ=UTC
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_polish_ci
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
node:
image: node:14-slim
tty: true
working_dir: /app
volumes:
- .:/app
command: ["node"]
volumes:
mysql_data: