-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
92 lines (75 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Run docker-compose build
# Run docker-compose up
# Live long and prosper
version: '3.1'
services:
apache:
build: .docker/apache
container_name: sf4_apache
ports:
- 82:80
volumes:
- .docker/config/vhosts:/etc/apache2/sites-enabled
- ${SYMFONY_APP}:/home/wwwroot/sf4
depends_on:
- php
mysql:
image: mysql:5.7
container_name: sf4_mysql
volumes:
- .docker/data/db:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
php:
build: .docker/php
container_name: sf4_php
volumes:
- ${SYMFONY_APP}:/home/wwwroot/sf4
environment:
- maildev_host=sf4_maildev
depends_on:
- maildev
- mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: sf4_phpmyadmin
restart: always
ports:
- 8080:80
links:
- mysql
environment:
PMA_HOST: mysql
maildev:
image: djfarrelly/maildev
container_name: sf4_maildev
ports:
- 8001:80
nginx:
container_name: angular_nginx
build: .docker/nginx
volumes:
- ${ANGULAR_APP}/dist/Angular-project:/usr/share/nginx/html
ports:
- "81:80"
- "443:443"
node:
build: .docker/node
container_name: angular_node
ports:
- 4200:4200
volumes:
- ${ANGULAR_APP}:/home/node/app/frontend
tty: true
command:
- /bin/sh
- -c
- |
cd /home/node/app/frontend && npm start
expose:
- "4200"