-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 997 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
version: '2'
services:
#### Main web server container
# You can simply do "docker-compose run web" to start it
# It will also start the database
web:
image: beubi/symfony2:web
ports:
- "80:80"
links:
- database
environment:
DATABASE_HOST: database
volumes:
- .:/srv/project
#### Container to make easier to run console commands
# To start an interactive sf console: "docker-compose run console"
# To run a one-off command such as cache clear: "docker-compose run console cache:clear"
console:
image: beubi/symfony2:console
links:
- database
volumes:
- .:/srv/project
#### Container that runs the database
# It is automatically started by docker-compose
# when you start another one that links to it
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: afe592de49656b627e4fc8a84dbbb032
MYSQL_USER: ubicycling
MYSQL_PASSWORD: qwe123
MYSQL_DATABASE: ubicycling