Use registry.kadet.net/podlike insted of official one
This build is able to use private registries so pre-deploy task with image pull is not longer required
This commit is contained in:
parent
15db597232
commit
a517daa91b
@ -2,7 +2,7 @@ version: '{{ compose_version }}'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
site:
|
site:
|
||||||
image: rycus86/podlike
|
image: registry.kadet.net/podlike
|
||||||
command: -logs -ipc=false
|
command: -logs -ipc=false
|
||||||
networks: ['{{ ingress_network }}']
|
networks: ['{{ ingress_network }}']
|
||||||
deploy:
|
deploy:
|
||||||
@ -53,12 +53,20 @@ services:
|
|||||||
configs:
|
configs:
|
||||||
- source: dotenv_{{ dotenv_file.checksum }}
|
- source: dotenv_{{ dotenv_file.checksum }}
|
||||||
target: /var/conf/wipe/.env
|
target: /var/conf/wipe/.env
|
||||||
|
secrets:
|
||||||
|
- source: dockerregistryauth
|
||||||
|
target: /var/run/secrets/podlike/dockerregistryauth.json
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- nginx-config:/mnt/nginx-config
|
- nginx-config:/mnt/nginx-config
|
||||||
- www-data:/mnt/www-data
|
- www-data:/mnt/www-data
|
||||||
- storage-data:/mnt/storage-data
|
- storage-data:/mnt/storage-data
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
dockerregistryauth:
|
||||||
|
name: dockerregistryauth
|
||||||
|
external: true
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
dotenv_{{ dotenv_file.checksum }}:
|
dotenv_{{ dotenv_file.checksum }}:
|
||||||
file: ./config/.env
|
file: ./config/.env
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
# this is needed because https://github.com/rycus86/podlike/issues/6
|
|
||||||
- name: 'Pull all images for "{{ service }}"'
|
|
||||||
community.docker.docker_image:
|
|
||||||
name: "{{ image }}"
|
|
||||||
source: pull
|
|
||||||
force_source: yes
|
|
||||||
with_items:
|
|
||||||
- registry.kadet.net/wipe/php-fpm:{{ wipe_version }}
|
|
||||||
loop_control:
|
|
||||||
loop_var: image
|
|
||||||
notify:
|
|
||||||
- Restart services
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
wipe_host: https://wipe.kadet.net
|
wipe_host: https://wipe.kadet.net
|
||||||
wipe_version: latest
|
wipe_version: '2022.1.0-dev'
|
||||||
wipe_database:
|
wipe_database:
|
||||||
name: wipe
|
name: wipe
|
||||||
user: wipe
|
user: wipe
|
||||||
|
Loading…
Reference in New Issue
Block a user