fix(docker): add restart to default docker-compose.yaml

This commit is contained in:
Sefa Eyeoglu 2022-02-25 23:07:50 +01:00
parent bab6bab12a
commit 64e57494b3
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,6 @@ It is recommended to use Docker to deploy the environment.
- Put your SSH key (which has push access to meta-upstream and meta-polymc) at `config/deploy.key`
- Pull meta- repos: `bash clone.sh`
- Customize docker-compose.yaml
- You might want to add `restart: always`
- Run `docker-compose up -d --build`
- Observe Cron logs using `docker-compose logs -f` (Runs hourly by default)
- (Optional) Run once to fill caches: `docker-compose run meta update`

View File

@ -4,11 +4,10 @@ services:
meta:
build: .
command: cron
environment:
MODE: master
volumes:
- "./caches:/app/caches"
- "./upstream:/app/upstream"
- "./polymc:/app/polymc"
- "./public:/app/public"
- "./config:/app/config"
restart: unless-stopped