gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
50
docker-compose.yml
Executable file
50
docker-compose.yml
Executable file
@@ -0,0 +1,50 @@
|
||||
version: '3.11'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
restart: always
|
||||
command: ${COMMAND:-sh ./scripts/entrypoint.sh}
|
||||
volumes:
|
||||
- .:/code
|
||||
ports:
|
||||
- ${PORT:-8001}:8000
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
networks:
|
||||
- eggs
|
||||
db:
|
||||
image: postgres:13
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_DB: django
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: '2309'
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- eggs
|
||||
redis:
|
||||
restart: always
|
||||
image: redis
|
||||
networks:
|
||||
- eggs
|
||||
|
||||
celery:
|
||||
build: .
|
||||
command: celery -A config worker --loglevel=info
|
||||
restart: always
|
||||
volumes:
|
||||
- .:/code
|
||||
depends_on:
|
||||
- web
|
||||
- redis
|
||||
networks:
|
||||
- eggs
|
||||
|
||||
volumes:
|
||||
pg_data: null
|
||||
|
||||
networks:
|
||||
eggs:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user