This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
forked from nfqakademija/infinite-loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 1.56 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
version: "2"
services:
nginx.symfony:
container_name: nginx.symfony
image: nginx:1.13.10
volumes:
- .:/code # Mount your code, so nginx/phpcould see it
- .docker/nginx/site.conf:/etc/nginx/conf.d/site.conf # Use custom virtual hosts
ports:
- 127.0.0.1:8000:8000 # For development. Open in browser 127.0.0.1:8000
- 127.0.0.1:8888:80 # To simulate production. Open in browser 127.0.0.1:8888
php.symfony:
container_name: php.symfony
build: .docker/php/
environment: # Passing to environment same configuration as in .env file
# - APP_ENV=$APP_ENV
- APP_SECRET=$APP_SECRET
- DATABASE_URL=$DATABASE_URL
volumes:
- .:/code # Mount your code, so nginx/phpcould see it
prod.php.symfony:
container_name: prod.php.symfony
build: .docker/php/
environment: # Production environment should not use parameters from .env, but get them via nginx/apache
- APP_ENV=prod # bin/console use APP_ENV value from environment
volumes:
- .:/code # Mount your code, so nginx/phpcould see it
mysql.symfony:
container_name: mysql.symfony
image: mysql:5.7.21
environment: # During first run root user with is generated with this password
- MYSQL_ROOT_PASSWORD=p9iijKcfgENjBWDYgSH7
volumes:
- .docker/mysql-data/:/var/lib/mysql
ports:
- 127.0.0.1:3307:3306 # Connect to it via -h127.0.0.1 --port=3307
frontend.symfony:
build: .docker/frontend/
container_name: frontend.symfony
volumes:
- .:/code # Mount your code, so javaScript tools could see it