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