Projekt

Obecné

Profil

Stáhnout (1.88 KB) Statistiky
| Větev: | Revize:
1 579f9cdd Tomáš Ballák
version: "3.2"
2
services:
3 b332d98a ballakt
       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 579f9cdd Tomáš Ballák
       php-fpm:
18 b332d98a ballakt
               build: './docker/php-fpm'
19 579f9cdd Tomáš Ballák
               depends_on: 
20
                       - database
21
               networks:
22
                   - backend
23
               ports: 
24
                       - "9000:9000"
25
               volumes:
26 666cada9 Tomáš Ballák
                       - ./website/:/var/www/symfony
27 28926492 ballakt
28 3bae34e0 Tomáš Ballák
               container_name: "heatmap_php_fpm"
29 579f9cdd Tomáš Ballák
       nginx:
30 b332d98a ballakt
               build: './docker/nginx'
31 579f9cdd Tomáš Ballák
               depends_on:
32
                       - php-fpm
33
                       - database
34 b332d98a ballakt
                       - crawler
35 579f9cdd Tomáš Ballák
               networks:
36
                       - frontend
37
                       - backend
38
               ports:
39 666cada9 Tomáš Ballák
                       - "80:80"
40 579f9cdd Tomáš Ballák
               volumes:
41 b332d98a ballakt
                       - ./logs/nginx:/var/nginx/log
42 666cada9 Tomáš Ballák
                       - ./website/:/var/www/symfony
43 3bae34e0 Tomáš Ballák
               container_name: "heatmap_nginx"
44 579f9cdd Tomáš Ballák
       database:
45
               image: 'mongo'
46 3bae34e0 Tomáš Ballák
               container_name: "heatmap_mongodb"
47 579f9cdd Tomáš Ballák
               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: