docker-compose.yml 1.38 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"
François Agneray's avatar
François Agneray committed
9
10
            DISPLAY_ERROR_DETAILS: "false"
            DATABASE_DEV_MODE: 0
11
12
13
14
15
16
17
18
            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
19
20
            LOGGER_LEVEL: "debug"
        ports:
Tifenn Guillas's avatar
Tifenn Guillas committed
21
            - 8080:80
François Agneray's avatar
François Agneray committed
22
        volumes:
23
            - .:/project
François Agneray's avatar
François Agneray committed
24
25
            - ./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
26

François Agneray's avatar
François Agneray committed
27
28
29
30
31
32
    db:
        image: postgres
        environment:
            POSTGRES_PASSWORD: "postgres"
        volumes:
            - pgdata:/var/lib/postgresql/data
33
34
            - ./conf-dev/obs_cat.sql:/sql/obs_cat.sql
            - ./conf-dev/observations_info.sql:/sql/observations_info.sql
Tifenn Guillas's avatar
Tifenn Guillas committed
35
            - ./conf-dev/svom_sdb_dc1.sql:/sql/svom_sdb_dc1.sql
Tifenn Guillas's avatar
Tifenn Guillas committed
36
            - ./conf-dev/colibridb.sql:/sql/colibridb.sql
François Agneray's avatar
#3 done    
François Agneray committed
37
            - ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
38
39
40
41
42
    
    adminer:
        image: adminer
        ports:
            - 8083:8080
François Agneray's avatar
François Agneray committed
43
44

volumes:
45
    pgdata: