update drone container label

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-07-26 14:49:20 +08:00
parent c83c4de0f2
commit 7148ed89d2

View File

@ -49,10 +49,10 @@
- "{{ drone_sqlite_dir }}:/data"
env_file: /etc/drone/drone-server.env
labels:
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:{{ drone_server_host }}"
- "traefik.basic.port=80"
- "traefik.basic.protocol=http"
traefik.enable: "true"
traefik.basic.frontend.rule: "Host:{{ drone_server_host }}"
traefik.basic.port: "80"
traefik.basic.protocol: "http"
when: ((drone_server_config is defined and drone_server_config.changed) or
(drone_sqlite_folder is defined and drone_sqlite_folder.changed)) and
drone_database_driver == "sqlite"
@ -74,10 +74,10 @@
- "{{ drone_sqlite_dir }}:/data"
env_file: /etc/drone/drone-server.env
labels:
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:{{ drone_server_host }}"
- "traefik.basic.port=80"
- "traefik.basic.protocol=http"
traefik.enable: "true"
traefik.basic.frontend.rule: "Host:{{ drone_server_host }}"
traefik.basic.port: "80"
traefik.basic.protocol: "http"
when: ((drone_server_config is defined and drone_server_config.changed) or
(drone_postgres_data_dir is defined and drone_postgres_data_dir.changed)) and
drone_database_driver != "sqlite"