diff options
| author | crupest <crupest@outlook.com> | 2022-11-21 11:46:40 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-21 11:46:40 +0800 | 
| commit | f7603c894af30498fd5bf9e7c99b1c8eb8550d69 (patch) | |
| tree | 4906357881477b88061a4a8db6b7ade231645264 /template/docker-compose.yaml.template | |
| parent | 75daeed5c74ae0c50eb77939352c889e947a3675 (diff) | |
| download | crupest-f7603c894af30498fd5bf9e7c99b1c8eb8550d69.tar.gz crupest-f7603c894af30498fd5bf9e7c99b1c8eb8550d69.tar.bz2 crupest-f7603c894af30498fd5bf9e7c99b1c8eb8550d69.zip  | |
If we don't pull docker image always, why would we use latest?
Diffstat (limited to 'template/docker-compose.yaml.template')
| -rw-r--r-- | template/docker-compose.yaml.template | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 431cdaf..5675a00 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -1,6 +1,7 @@  services:    halo:      image: halohub/halo:latest +    pull_policy: always      container_name: halo      restart: on-failure:3      volumes: @@ -22,6 +23,7 @@ services:    timeline:      image: crupest/timeline:latest +    pull_policy: always      container_name: timeline      restart: on-failure:3      environment: @@ -40,6 +42,7 @@ services:      build:        context: ./docker/arch-code-server        dockerfile: Dockerfile +      pull: true        args:          - CRUPEST_USER=$CRUPEST_USER          - CRUPEST_GROUP=$CRUPEST_GROUP @@ -57,6 +60,7 @@ services:    nginx:      image: nginx:latest +    pull_policy: always      container_name: nginx      restart: on-failure:3      ports: @@ -74,6 +78,7 @@ services:    mailserver:      image: docker.io/mailserver/docker-mailserver:latest +    pull_policy: always      container_name: mailserver      # If the FQDN for your mail-server is only two labels (eg: example.com),      # you can assign this entirely to `hostname` and remove `domainname`. @@ -96,7 +101,7 @@ services:        - ./data/dms/config/:/tmp/docker-mailserver/        - ./data/certbot/certs:/etc/letsencrypt        - /etc/localtime:/etc/localtime:ro -    restart: always +    restart: on-failure:3      stop_grace_period: 1m      cap_add:        - NET_ADMIN  | 
