summaryrefslogtreecommitdiffstats
path: root/docker/docker-compose.yml
blob: 03bc37f59152fd288b1fdfd307e357b4b2745412 (plain)
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
version: '2'
services:
    mysql:
        image: mysql
        environment:
            - MYSQL_DATABASE=filebin
            - MYSQL_USER=filebin
            # TODO: can this be set to a random password?
            - MYSQL_PASSWORD=filebin-docker-demo
            - MYSQL_RANDOM_ROOT_PASSWORD=yes

    filebin:
        links:
            - mysql
        build: ..
        ports:
            - "8080:8080"
        environment:
            - FB_DB_HOSTNAME=mysql
            - FB_DB_USERNAME=filebin
            - FB_DB_PASSWORD=filebin-docker-demo
            - FB_DB_DATABASE=filebin
            - FB_CONTACT_NAME=John Doe
            - FB_CONTACT_MAIL=root@example.local