Projekt

Obecné

Profil

Stáhnout (2.12 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
               container_name: "heatmap_nginx"
46
       database:
47
               image: 'mongo'
48
               container_name: "heatmap_mongodb"
49
               restart: always
50
               networks:
51
                       - backend
52
               ports:
53
                       - '27017-27019:27017-27019'
54
               environment:
55
                       MONGO_INITDB_DATABASE: open-data-db
56
                       MONGO_INITDB_ROOT_USERNAME: root
57
                       MONGO_INITDB_ROOT_PASSWORD: root
58
               volumes:
59
                       - data-db:/data/db
60
                       - ./dev-dump:/dev-dump
61
networks:
62
       frontend:
63
       backend:
64

    
65
                        
66
volumes:
67
    data-db:
(6-6/6)