docker-compose.yml 1.59 KB
Newer Older
François Agneray's avatar
François Agneray committed
1
2
3
4
5
6
7
8
9
10
11
12
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"
Tifenn Guillas's avatar
Tifenn Guillas committed
13
            METADATA_DB_HOST: "db"
François Agneray's avatar
François Agneray committed
14
            METADATA_DB_PORT: 5432
15
            METADATA_DB_DBNAME: "anis_admin"
Tifenn Guillas's avatar
Tifenn Guillas committed
16
17
            METADATA_DB_USER: "anis"
            METADATA_DB_PASSWORD: "anis"
François Agneray's avatar
François Agneray committed
18
19
20
            MAILER_HOST: "mailer"
            MAILER_PORT: 25
            LOGGER_NAME: "anis-v3-server"
21
            LOGGER_PATH: "php://stdout"
François Agneray's avatar
François Agneray committed
22
            LOGGER_LEVEL: "debug"
François Agneray's avatar
#38 WIP    
François Agneray committed
23
24
25
26
            AMQP_HOST: ${AMQP_HOST}
            AMQP_PORT: 5672
            AMQP_USER: "guest"
            AMQP_PASSWORD: "guest"
François Agneray's avatar
François Agneray committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
        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
43
44
            - ./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
45
            - ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
François Agneray's avatar
François Agneray committed
46
47
48
49
50
51
52
    adminer:
        image: adminer
        ports:
            - 8083:8080

volumes:
    pgdata: