Skip to content

Commit e2f9828

Browse files
committed
Make tags in docker-compose.yml set via .env file
1 parent 0942fb6 commit e2f9828

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

deployment/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: eventyay-next
22

33
services:
44
web:
5-
image: eventyay/eventyay-next:enext
5+
image: eventyay/eventyay-next:${TAG}
66
container_name: eventyay-next-web
77
command: gunicorn eventyay.config.wsgi:application --bind 0.0.0.0:8000
88
volumes:
@@ -20,7 +20,7 @@ services:
2020
- redis
2121

2222
websocket:
23-
image: eventyay/eventyay-next:enext
23+
image: eventyay/eventyay-next:${TAG}
2424
container_name: eventyay-next-websocket
2525
entrypoint: daphne -b 0.0.0.0 -p 8001 eventyay.config.asgi:application
2626
volumes:
@@ -39,7 +39,7 @@ services:
3939
- redis
4040

4141
worker:
42-
image: eventyay/eventyay-next:enext
42+
image: eventyay/eventyay-next:${TAG}
4343
container_name: eventyay-next-worker
4444
entrypoint: celery -A eventyay worker -l info
4545
volumes:

deployment/env.dev-sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
TAG=enext
12
DEBUG=1
23
SECRET_KEY=foo
34
DATABASE=postgres

deployment/env.prod-sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
TAG=main
12
DEBUG=0
23
SECRET_KEY=foo
34
DATABASE=postgres

0 commit comments

Comments
 (0)