这是我的docker-compose.yml。
<h1>Form</h1>
<form [formGroup]="testForm" (ngSubmit)="guardar()" novalidate>
<label *ngFor="let opcion of opciones">
<input type="radio"
formControlName="opcionA"
required
[value]="opcion.valor">{{opcion.nombre}}
</label>
<div *ngIf="testForm.get('opcionA').invalid">
{{ msgError }}
</div>
<div *ngIf="testForm.value.opcionA === 4">
<textarea formControlName="observacionA"></textarea>
<div *ngIf="testForm.get('observacionA').invalid">
{{ msgError }}
</div>
</div>
<br>
<hr>
<button [disabled]="valido"
type="submit">
Save
</button>
</form>
{{testForm.valid}}
通常,我有一个每分钟执行一次的任务,它会更新位于&#34; web&#34;中的数据库。在开发环境中一切正常。然而,&#34; celerybeat&#34;和&#34; celeryd&#34;通过version: "3"
services:
nginx:
image: nginx:latest
container_name: nginx_airport
ports:
- "8080:8080"
volumes:
- ./:/app
- ./docker_nginx:/etc/nginx/conf.d
- ./timezone:/etc/timezone
depends_on:
- web
rabbit:
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=asdasdasd
ports:
- "5672:5672"
- "15672:15672"
web:
build:
context: .
dockerfile: Dockerfile
command: /app/start_web.sh
container_name: django_airport
volumes:
- ./:/app
- ./timezone:/etc/timezone
expose:
- "8080"
depends_on:
- celerybeat
celerybeat:
build:
context: .
dockerfile: Dockerfile
command: /app/start_celerybeat.sh
volumes:
- ./:/app
- ./timezone:/etc/timezone
depends_on:
- celeryd
celeryd:
build:
context: .
dockerfile: Dockerfile
command: /app/start_celeryd.sh
volumes:
- ./:/app
- ./timezone:/etc/timezone
depends_on:
- rabbit
运行时不要更新我的数据库?出了什么问题?