docker-compose.yml 1.5 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: "true"
            DATABASE_DEV_MODE: 1
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
François Agneray's avatar
François Agneray committed
26
            - ./conf-dev/data-dev:/data/ASPIC
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
Tifenn Guillas's avatar
Tifenn Guillas committed
36
            - ./conf-dev/svom_sdb_dc1.sql:/sql/svom_sdb_dc1.sql
Tifenn Guillas's avatar
Tifenn Guillas committed
37
            - ./conf-dev/colibridb.sql:/sql/colibridb.sql
38
            - ./conf-dev/aspic_vipers_dr2_w1.sql:/sql/aspic_vipers_dr2_w1.sql
François Agneray's avatar
#3 done    
François Agneray committed
39
            - ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
40
41
42
43
44
    
    adminer:
        image: adminer
        ports:
            - 8083:8080
François Agneray's avatar
François Agneray committed
45
46

volumes:
47
    pgdata: