-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 918 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
version: '3'
services:
db:
image: mysql:5.7.20
hostname: db
ports:
- 33061:3306
volumes:
- "./volumes/mysql_dev:/var/lib/mysql"
env_file:
- "./.env"
nginx:
image: docker.io/codereviewvideos/nginx.symfony.dev
hostname: nginx
volumes:
- "./volumes/nginx/logs:/var/log/nginx/"
- "./:/var/www/dev"
ports:
- 81:80
depends_on:
- php
restart: always
php:
image: docker.io/codereviewvideos/symfony.dev
hostname: php
volumes:
- "./volumes/php/var/cache:/var/www/dev/var/cache/:rw"
- "./volumes/php/var/sessions:/var/www/dev/var/sessions/:rw"
- "./volumes/php/var/logs:/var/www/dev/var/logs/:rw"
- "./:/var/www/dev"
env_file:
- "./.env"
depends_on:
- db