Projekt

Obecné

Profil

Stáhnout (2.19 KB) Statistiky
| Větev: | Revize:
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
                environment:
17
                        - TZ=Europe/Prague
18
                
19
       php-fpm:
20
               build: './docker/php-fpm'
21
               depends_on: 
22
                       - database
23
               ports: 
24
                       - "9000:9000"
25
               volumes:
26
                       - ./website/:/var/www/symfony
27

    
28
               container_name: "heatmap_php_fpm"
29
               networks: 
30
                        - backend
31
       nginx:
32
               build: './docker/nginx'
33
               depends_on:
34
                       - php-fpm
35
                       - database
36
                       - crawler
37
               networks:
38
                       - frontend
39
                       - backend
40
               ports:
41
                       - "80:80"
42
               volumes:
43
                       - ./logs/nginx:/var/nginx/log
44
                       - ./website/:/var/www/symfony
45
                       - ./docker/nginx/sites:/etc/nginx/sites-available
46

    
47
               container_name: "heatmap_nginx"
48
       database:
49
               image: 'mongo'
50
               container_name: "heatmap_mongodb"
51
               restart: always
52
               networks:
53
                       - backend
54
               ports:
55
                       - '27017-27019:27017-27019'
56
               environment:
57
                       MONGO_INITDB_DATABASE: open-data-db
58
                       MONGO_INITDB_ROOT_USERNAME: root
59
                       MONGO_INITDB_ROOT_PASSWORD: root
60
               volumes:
61
                       - data-db:/data/db
62
                       - ./dev-dump:/dev-dump
63
networks:
64
       frontend:
65
       backend:
66

    
67
                        
68
volumes:
69
    data-db:
(6-6/6)