Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
canap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SI-FSD
canap
Commits
49bdc927
Commit
49bdc927
authored
4 years ago
by
Nicolas Borboën
Browse files
Options
Downloads
Patches
Plain Diff
[feature] hello docker
parent
5dc09f41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
canapEPFL/Dockerfile-canap-form
+27
-0
27 additions, 0 deletions
canapEPFL/Dockerfile-canap-form
canapEPFL/docker-compose.yml
+32
-0
32 additions, 0 deletions
canapEPFL/docker-compose.yml
with
59 additions
and
0 deletions
canapEPFL/Dockerfile-canap-form
0 → 100644
+
27
−
0
View file @
49bdc927
FROM php:7-apache
RUN apt-get update;
RUN apt-get install -f -y msmtp msmtp-mta;
RUN echo 'sendmail_path = "/usr/bin/msmtp -C /etc/msmtprc -t"' >> /usr/local/etc/php/php.ini
RUN echo 'sendmail_from = "noreply@epfl.ch"' >> /usr/local/etc/php/php.ini
RUN touch /etc/msmtprc
RUN echo "defaults" > /etc/msmtprc
RUN echo "logfile /var/log/msmtp.log" >> /etc/msmtprc
RUN echo "" >> /etc/msmtprc
RUN echo "account epfl" >> /etc/msmtprc
RUN echo "host mail.epfl.ch" >> /etc/msmtprc
RUN echo "port 25" >> /etc/msmtprc
RUN echo "from noreply@epfl.ch" >> /etc/msmtprc
RUN echo "" >> /etc/msmtprc
RUN echo "account default : epfl" >> /etc/msmtprc
#php -r "mail('nicolas.borboen@epfl.ch', 'Test Postfix', 'Test mail from postfix');"
RUN docker-php-ext-install pdo_mysql
# cleanup
RUN apt-get -y autoremove && apt-get -y clean;
This diff is collapsed.
Click to expand it.
canapEPFL/docker-compose.yml
0 → 100644
+
32
−
0
View file @
49bdc927
version
:
'
3'
services
:
db
:
image
:
mysql:5.7
container_name
:
canap_db
environment
:
MYSQL_ROOT_PASSWORD
:
canap_db
MYSQL_DATABASE
:
canap_db
MYSQL_USER
:
canap_db
MYSQL_PASSWORD
:
canap_db
volumes
:
-
./DB/SQL:/docker-entrypoint-initdb.d
-
./DB/data:/var/lib/mysql
ports
:
-
"
9906:3306"
expose
:
-
9906
form
:
build
:
context
:
./
dockerfile
:
Dockerfile-canap-form
container_name
:
canap_form
depends_on
:
-
db
volumes
:
-
.:/var/www/html/
ports
:
-
"
8180:80"
stdin_open
:
true
tty
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment