-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose.ci.yaml and update justfile for CI environment
- Loading branch information
Showing
2 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: '3.3' | ||
services: | ||
db: | ||
container_name: bemore-db | ||
image: postgres:12 | ||
volumes: | ||
- app-db-data:/var/lib/postgresql/data/pgdata | ||
env_file: | ||
- .env | ||
environment: | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
networks: | ||
- default | ||
|
||
queue: | ||
container_name: bemore-queue | ||
image: rabbitmq:3 | ||
# Using the below image instead is required to enable the "Broker" tab in the flower UI: | ||
# image: rabbitmq:3-management | ||
# | ||
# You also have to change the flower command | ||
|
||
|
||
backend: | ||
tty: true | ||
container_name: bemore-backend | ||
image: ${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest} | ||
depends_on: | ||
- db | ||
env_file: | ||
- .env | ||
environment: | ||
# Allow explicit env var override for tests | ||
- SMTP_HOST=${SMTP_HOST} | ||
ports: | ||
- 8000:8001 | ||
build: | ||
context: ./backend | ||
dockerfile: backend.dockerfile | ||
args: | ||
INSTALL_DEV: ${INSTALL_DEV-true} | ||
volumes: | ||
- ./backend/app:/app | ||
|
||
celeryworker: | ||
tty: true | ||
container_name: bemore-celeryworker | ||
image: ${DOCKER_IMAGE_CELERYWORKER?Variable not set}:${TAG-latest} | ||
depends_on: | ||
- db | ||
- queue | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./backend/app:/app | ||
environment: | ||
# Allow explicit env var override for tests | ||
- SMTP_HOST=${SMTP_HOST?Variable not set} | ||
build: | ||
context: ./backend | ||
dockerfile: celeryworker.dockerfile | ||
args: | ||
INSTALL_DEV: ${INSTALL_DEV-true} | ||
|
||
|
||
volumes: | ||
app-db-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters