docker-compose.yml 1.24 KB
Newer Older
François Agneray's avatar
François Agneray committed
1
2
3
4
5
version: '3'

services:
    php:
        build: conf-dev
6
        working_dir: /project
François Agneray's avatar
François Agneray committed
7
8
        environment:
            docker: "true"
9
10
11
12
13
14
15
16
17
18
19
            DISPLAY_ERROR_DETAILS: 'true'
            DATABASE_PATH_PROXY: "/tmp/doctrine_proxy"
            DATABASE_DEV_MODE: "true"
            DATABASE_CO_DRIVER: "pdo_pgsql"
            DATABASE_CO_HOST: "db"
            DATABASE_CO_PORT: 5432
            DATABASE_CO_DBNAME: "anis_metamodel"
            DATABASE_CO_USER: "postgres"
            DATABASE_CO_PASSWORD: "postgres"
            LOGGER_NAME: "anis-metamodel"
            LOGGER_PATH: "php://stderr"
François Agneray's avatar
François Agneray committed
20
21
            LOGGER_LEVEL: "debug"
        ports:
Tifenn Guillas's avatar
Tifenn Guillas committed
22
            - 8080:80
François Agneray's avatar
François Agneray committed
23
        volumes:
24
            - .:/project
François Agneray's avatar
François Agneray committed
25
26
            - ./conf-dev/dev-php.ini:/usr/local/etc/php/conf.d/dev-php.ini
            - ./conf-dev/vhost.conf:/etc/apache2/sites-available/000-default.conf
27

François Agneray's avatar
François Agneray committed
28
29
30
31
32
33
    db:
        image: postgres
        environment:
            POSTGRES_PASSWORD: "postgres"
        volumes:
            - pgdata:/var/lib/postgresql/data
34
35
            - ./conf-dev/obs_cat.sql:/sql/obs_cat.sql
            - ./conf-dev/observations_info.sql:/sql/observations_info.sql
François Agneray's avatar
#3 done    
François Agneray committed
36
            - ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
François Agneray's avatar
François Agneray committed
37
38

volumes:
39
    pgdata: