Set the names of the containers in dev compose
This commit is contained in:
parent
0376b9122d
commit
811a690d39
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ version: '3.8'
|
|||
services:
|
||||
web:
|
||||
build: ./app
|
||||
container_name: django_fbf_web_1
|
||||
command: >
|
||||
bash -c 'while !</dev/tcp/db/5432; do sleep 1; done;
|
||||
python manage.py makemigrations;
|
||||
|
@ -33,8 +34,10 @@ services:
|
|||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.django.rule=Host(`${ALLOWED_HOSTS}`)"
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
container_name: django_fbf_db_1
|
||||
volumes:
|
||||
- ./postgres/data:/var/lib/postgresql/data/
|
||||
- ./postgres/backup:/backup
|
||||
|
@ -44,8 +47,10 @@ services:
|
|||
- "POSTGRES_USER=${DB_USER}"
|
||||
- "POSTGRES_PASSWORD=${DB_PASSWORD}"
|
||||
- "POSTGRES_DB=${DB_NAME}"
|
||||
|
||||
traefik:
|
||||
image: traefik:v2.9.6
|
||||
container_name: django_fbf_traefik_1
|
||||
ports:
|
||||
- 8008:80
|
||||
- 8081:8080
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue