Commit 37c6cf2e10f9a4ec34829a39ce4e09db7ef6010a
1 parent
59ef0b7c
Exists in
master
Adicionado arquivos para uso do docker-compose;
portabilis/ieducar#177
Showing
3 changed files
with
53 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,26 @@ |
1 | +FROM ubuntu:12.04 | |
2 | + | |
3 | +MAINTAINER Caroline Salib <caroline@portabilis.com.br> | |
4 | + | |
5 | +RUN apt-get -y update \ | |
6 | + && apt-get -y upgrade \ | |
7 | + && apt-get install -y apache2 php5 libapache2-mod-php5 php5-pgsql php-pear rpl wget \ | |
8 | + && a2enmod rewrite \ | |
9 | + && apt-get clean | |
10 | + | |
11 | +RUN apt-get install -y libreadline6 libreadline6-dev make gcc zlib1g-dev | |
12 | + | |
13 | +# Instala pacotes pear | |
14 | +RUN pear install XML_RPC2 Mail Net_SMTP Services_ReCaptcha | |
15 | + | |
16 | +ADD ieducar.conf /etc/apache2/sites-available/default | |
17 | + | |
18 | +EXPOSE 80 | |
19 | + | |
20 | +CMD mkdir /home/ieducar/ieducar | |
21 | +CMD chmod 777 -R /home/ieducar/ieducar | |
22 | +WORKDIR /home/ieducar/ieducar | |
23 | + | |
24 | + | |
25 | +CMD /usr/sbin/apache2ctl -D FOREGROUND | |
26 | + | ... | ... |
... | ... | @@ -0,0 +1,16 @@ |
1 | +ieducar: | |
2 | + build: . | |
3 | + ports: | |
4 | + - "8080:80" | |
5 | + volumes: | |
6 | + - .:/home/ieducar/ieducar | |
7 | + links: | |
8 | + - postgres | |
9 | + container_name: ieducar_comunidade | |
10 | + | |
11 | +postgres: | |
12 | + image: ignatov/docker-postgresql-8.2 | |
13 | + environment: | |
14 | + - POSTGRES_PASSWORD=postgres | |
15 | + ports: | |
16 | + - "5430:5432" | ... | ... |