Skip to content

Commit 906faed

Browse files
committed
Adjust docker composes
1 parent 72fa96a commit 906faed

File tree

2 files changed

+14
-25
lines changed

2 files changed

+14
-25
lines changed

{{ cookiecutter.name }}/docker-compose.yml renamed to {{ cookiecutter.name }}/compose.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
version: '2'
1+
---
2+
x-default-build-args: &default-build-args
3+
PYTHON_VERSION: "3.11.12"
4+
5+
x-default-environment: &default-environment
6+
DATABASE_URL: postgres://postgres@postgres:5432/postgres
7+
CELERY_BROKER_URL: redis://redis:6379/0
8+
9+
x-default-depends_on: &default-depends_on
10+
- postgres
11+
- redis
212

313
services:
414
postgres:
@@ -18,16 +28,11 @@ services:
1828
build:
1929
context: .
2030
target: web
21-
args: &default-build-args
22-
PYTHON_VERSION: "3.11.6"
23-
environment: &default-environment
24-
DATABASE_URL: postgres://postgres@postgres:5432/postgres
25-
CELERY_BROKER_URL: redis://redis:6379/0
31+
args: *default-build-args
32+
environment: *default-environment
2633
ports:
2734
- 8000:8000
28-
depends_on: &default-depends_on
29-
- postgres
30-
- redis
35+
depends_on: *default-depends_on
3136

3237
worker:
3338
build:

{{ cookiecutter.name }}/docker-compose.db.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)