docker-compose.yml 1.4 KB
Newer Older
François Agneray's avatar
François Agneray committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3'

services:
    php:
        build: conf-dev
        working_dir: /srv/app
        environment:
            docker: "true"
            SLIM_DISPLAY_ERROR_DETAILS: "true"
            METADATA_DOCTRINE_PATH_PROXY: "/tmp/doctrine_proxy"
            METADATA_DOCTRINE_DEV_MODE: "true"
            METADATA_DB_DRIVER: "pdo_pgsql"
            METADATA_DB_HOST: "db"
            METADATA_DB_PORT: 5432
François Agneray's avatar
#3 done    
François Agneray committed
15
            METADATA_DB_DBNAME: "anis_metamodel"
François Agneray's avatar
#2 done    
François Agneray committed
16
17
            METADATA_DB_USER: "anis"
            METADATA_DB_PASSWORD: "anis"
François Agneray's avatar
François Agneray committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
            MAILER_HOST: "mailer"
            MAILER_PORT: 25
            LOGGER_NAME: "anis-v3-server"
            LOGGER_PATH: "php://stderr"
            LOGGER_LEVEL: "debug"
        ports:
            - 8080:80
        volumes:
            - .:/srv/app
            - ./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
    mailer:
        image: djfarrelly/maildev
        ports:
            - 1080:80
    db:
        image: postgres
        environment:
            POSTGRES_PASSWORD: "postgres"
        volumes:
            - pgdata:/var/lib/postgresql/data
François Agneray's avatar
#3 done    
François Agneray committed
39
40
            - ./conf-dev/anis_test.sql:/sql/anis_test.sql
            - ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
François Agneray's avatar
François Agneray committed
41
42
43
44
45
46
47
    adminer:
        image: adminer
        ports:
            - 8083:8080

volumes:
    pgdata: