docker-compose.yml 1.29 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
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
            METADATA_DB_DBNAME: "anisv3_db"
            METADATA_DB_USER: "postgres"
            METADATA_DB_PASSWORD: "postgres"
            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"
            POSTGRES_DB: "anisv3_db"
        volumes:
            - pgdata:/var/lib/postgresql/data
    adminer:
        image: adminer
        ports:
            - 8083:8080

volumes:
    pgdata: