-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (38 loc) · 880 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (38 loc) · 880 Bytes
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
version: '3'
services:
nginx:
image: nginx
restart: always
volumes:
- ${PWD}/docker/nginx/sites:/etc/nginx/conf.d
- ${PWD}/symfony:/var/www/app
links:
- php:php
- mysql:mysql
- redis:redis
ports:
- "127.0.0.1:8080:80"
php:
build: docker/php
restart: always
volumes:
- ${PWD}/symfony:/var/www/app
- ${PWD}/docker/php/php.ini:/usr/local/etc/php/php.ini
links:
- mysql:mysql
- redis:redis
mysql:
restart: always
image: mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
volumes:
- $PWD/docker/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
redis:
image: redis
restart: always
volumes:
- ${PWD}/docker/redis/data:/data
ports:
- "6379:6379"