This is a Docker Compose recipe for Artefactual's Access To Memory software.
Note that I've only tested this on 64bit native Linux using Docker directly, so if you're using boot2docker or a VM things might be different.
To use:
- Clone this repo.
- Install Docker and Docker Compose
- in the repo directory, run
docker-compose up
- Watch things build! Fun!
- Wait a titch after everything's finished building. A few seconds should do it.
- Visit port 8000 in whatever machine you've run docker on, e.g., http://localhost:8000.
- Fill in the web config fields! For the database portion, it's
atom
for the database,atom
for the user,worstpass
for the password. Be sure to go to advanced config and change your server fromlocalhost
todb
. For Elasticsearch, the server name ises
. - It'll take around a minute for AtoM to shake itself out.
- Fill in your site information, go to your new site.
- Note that there is a bug with php5-fpm - after your new site comes up, the "Browse By" links on the left may be nonfunctional -- you may get 500 errors. To fix that, run the following line in a new shell or terminal window:
docker exec dockeratom_nginx_1 service php5-fpm stop
Note that the container name (dockeratom_nginx_1
) might be different in your setup. Run docker ps
to figure out what the name of your nginx container is. Also, this does stop FPM but supervisord will immediately start FPM again, so don't be put off by the "stop" there in the service
command.
Share and enjoy!
Note: This is meant for development and testing purposes only. Don't try to run AtoM in production with Docker Compose.
If you dig into the directories and change things (like the atom database password or user) be sure to execute docker-compose rm
followed by docker-compose build
before you do another docker-compose up
Unless otherwise indicated, anything written by jbfink is in the Public Domain (see UNLICENSE). Software that I may incorporate (e.g. AtoM) is licensed seperately.