Projekt

Obecné

Profil

Stáhnout (1.7 KB) Statistiky
| Větev: | Revize:
1 6f6156eb ballakt
version: "3.2"
2
services:
3
       php-fpm:
4
               build: './build/php-fpm/dev'
5
               depends_on: 
6
                       - database
7
               networks:
8
                   - backend
9
               ports: 
10
                       - "9001:9000"
11
               volumes:
12
                       - ./website/:/var/www/symfony
13
               container_name: "heatmap_php_fpm"
14
               
15
               environment:
16
                       XDEBUG_CONFIG: remote_host=172.17.0.1 #your docker network i TODO:NOT WORKING
17
       nginx:
18
               build: './build/nginx'
19
               depends_on:
20
                       - php-fpm
21
                       - database
22
               networks:
23
                       - frontend
24
                       - backend
25
               ports:
26
                       - "80:80"
27
               volumes:
28 1f77dd64 ballakt
                       - ./logs/nginx:/var/log/nginx
29 6f6156eb ballakt
                       - ./website/:/var/www/symfony
30
               container_name: "heatmap_nginx"
31
       database:
32
               image: 'mongo'
33
               container_name: "heatmap_mongodb"
34
               restart: always
35
               networks:
36
                       - backend
37
               ports:
38
                       - '27017-27019:27017-27019'
39
              
40
               environment:
41
                       MONGO_INITDB_DATABASE: open-data-db
42
                       MONGO_INITDB_ROOT_USERNAME: root
43
                       MONGO_INITDB_ROOT_PASSWORD: root
44
               volumes:
45 b8edf218 vastja
                        - data-db:/data/db
46
                        - ./dev-dump:/dev-dump
47 5d0f8ac1 vastja
                        
48 b8edf218 vastja
volumes:
49
    data-db:
50 5d0f8ac1 vastja
    
51 6f6156eb ballakt
networks:
52
       frontend:
53
       backend: