-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.15 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
version: '3'
services:
# redis
redis:
image: redis:alpine
volumes:
- ./db/redis/:/data/redis
# database
mysql:
image: mysql:5.7
volumes:
- ./db/data:/var/lib/mysql
command:
- "--default-authentication-plugin=mysql_native_password"
environment:
MYSQL_ROOT_PASSWORD: "toor"
MYSQL_DATABASE: "php-roguelike"
MYSQL_USER: 'php-roguelike'
MYSQL_PASSWORD: 'password123'
ports:
- "3306:3306"
# php app
app:
build: .
tty: true
depends_on:
- mysql
- redis
links:
- mysql
- redis
command: tail -f /app/var/log/dev.log
volumes:
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./docker/supervisor/messenger-worker.conf:/etc/supervisor/conf.d/messenger-worker.conf
- .:/app_current
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- .:/app
php:
image: php:fpm
volumes:
- .:/app
volumes:
mysql: