Here you'll find docker container recipes and build scripts for DaCHS
(and surrounding services).
Here will compose the following containers:
DaCHS
- dachs (sandbox container running dachs-server and postgres)
- dachs-server (container running only dachs-server)
- dachs-postgres (container running only postgres)
Extra
- awstats (optional, container providing Awstats)
In default compose file (docker-compose.yml) there is dachs (and awstats).
In compose docker-compose.full.yml, you'll see dachs-server and dachs-postgres
(and awstats) composing individual services.
Have a look in the README file in dachs/ for details on
building the individual containers.
If you don't have yet, install
docker-compose.
To run (and build if not yet) the containers:
$ docker-compose upThis will use docker-compose.yml to build and run containers.
The default Dachs container built is the latest dachs container
-- using GAVO's apt repository.
To run dachs/postgres server containers individually, docker-compose.full.yml
is a sample of such setup:
$ docker-compose -f docker-compose.full.ymlTo (re)build the containers defined in a compose file:
$ docker-compose buildThe variables used in the compose files can be defined in an "env" file to fix some settings on the containers building and running.
See env.rc for an example:
# Local path for Dachs logs (persistence)
DACHS_LOGS_PATH="./logs/dachs"
# Local path data/files to mount
DACHS_DATA_PATH="./data"
# Dachs branch/repository version.
# Options are: main, backports, gavo (=latest).
INSTALL_REPO=latest
Example run:
$ docker-compose --env-file env.rc up