Changeset View
Changeset View
Standalone View
Standalone View
docker/docker-compose.yml
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | env_file: | ||||
- ./env/02-web-db.env | - ./env/02-web-db.env | ||||
environment: | environment: | ||||
VERBOSITY: 3 | VERBOSITY: 3 | ||||
DJANGO_SETTINGS_MODULE: swh.web.settings.production | DJANGO_SETTINGS_MODULE: swh.web.settings.production | ||||
SWH_CONFIG_FILENAME: /web.yml | SWH_CONFIG_FILENAME: /web.yml | ||||
entrypoint: /entrypoint.sh | entrypoint: /entrypoint.sh | ||||
volumes: | volumes: | ||||
- "./conf/web.yml:/web.yml:ro" | - "./conf/web.yml:/web.yml:ro" | ||||
- "./services/swh-web/entrypoint.sh:/entrypoint.sh:ro" | - "./services/swh-web/entrypoint.sh:/entrypoint.sh:ro" | ||||
ardumont: adding the cron as mountpoint here installs the file but no cron is running so no. | |||||
swh-web-cron: | |||||
build: ./ | |||||
image: swh/cron | |||||
depends_on: | |||||
- swh-web | |||||
Done Inline ActionsAdding environment variable in the container does not transmit the environment variables required for the cron to actually work so not an option either... ardumont: Adding environment variable in the container does not transmit the environment variables… | |||||
env_file: | |||||
- ./env/01-web-db.env | |||||
- ./env/02-web-db.env | |||||
environment: | |||||
DJANGO_SETTINGS_MODULE: swh.web.settings.production | |||||
SWH_CONFIG_FILENAME: /web.yml | |||||
entrypoint: ["cron", "-f"] | |||||
volumes: | |||||
- "./conf/web.yml:/web.yml:ro" | |||||
swh-deposit-db: | swh-deposit-db: | ||||
image: postgres:12 | image: postgres:12 | ||||
env_file: | env_file: | ||||
- ./env/deposit-db.env | - ./env/deposit-db.env | ||||
swh-deposit: | swh-deposit: | ||||
image: swh/stack | image: swh/stack | ||||
build: ./ | build: ./ | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |
adding the cron as mountpoint here installs the file but no cron is running so no.