-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1011 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
50
51
application:
build: build/application
volumes:
- ../symfony-php:/app
- ./data/redis:/var/lib/redis
- ./data/mysql:/var/lib/mysql
php:
build: build/php
environment:
- APP_SITE_NAME=flosports
volumes_from:
- application
working_dir: /app
links:
- db
- redis
db:
image: mysql:5.7
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: FloSports
MYSQL_USER: flosports
MYSQL_PASSWORD: flosports
MYSQL_ROOT_PASSWORD: flosports
volumes_from:
- application
redis:
build: build/redis
volumes_from:
- application
ports:
- "6380:6379"
nginx:
build: build/nginx
environment:
- SYMFONY_ENV=local
- APP_SITE_NAME=flosports
- SYMFONY_DEBUG=1
- NGINX_HOST=admin.flosports.local
- NGINX_PORT=80
ports:
- "8080:80"
links:
- php
- redis
volumes_from:
- application