1
|
version: "3.2"
|
2
|
services:
|
3
|
php-fpm:
|
4
|
build: './build/php-fpm'
|
5
|
depends_on:
|
6
|
- database
|
7
|
networks:
|
8
|
- backend
|
9
|
ports:
|
10
|
- "9000:9000"
|
11
|
volumes:
|
12
|
- ./website/:/var/www/symfony
|
13
|
- ./python-module:/var/python-module
|
14
|
|
15
|
container_name: "heatmap_php_fpm"
|
16
|
nginx:
|
17
|
build: './build/nginx'
|
18
|
depends_on:
|
19
|
- php-fpm
|
20
|
- database
|
21
|
networks:
|
22
|
- frontend
|
23
|
- backend
|
24
|
ports:
|
25
|
- "80:80"
|
26
|
volumes:
|
27
|
- ./logs:/var/nginx/log
|
28
|
- ./website/:/var/www/symfony
|
29
|
container_name: "heatmap_nginx"
|
30
|
database:
|
31
|
image: 'mongo'
|
32
|
container_name: "heatmap_mongodb"
|
33
|
restart: always
|
34
|
networks:
|
35
|
- backend
|
36
|
ports:
|
37
|
- '27017-27019:27017-27019'
|
38
|
environment:
|
39
|
MONGO_INITDB_DATABASE: open-data-db
|
40
|
MONGO_INITDB_ROOT_USERNAME: root
|
41
|
MONGO_INITDB_ROOT_PASSWORD: root
|
42
|
volumes:
|
43
|
- /database:/data/db
|
44
|
networks:
|
45
|
frontend:
|
46
|
backend:
|