Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
chore(dev-env): drop compose.override.yaml
Browse files Browse the repository at this point in the history
there should be need for it because the compose setup is only for developement
  • Loading branch information
c0rydoras committed Apr 19, 2024
1 parent b58c318 commit 758b576
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 93 deletions.
78 changes: 0 additions & 78 deletions compose.override.yaml

This file was deleted.

97 changes: 82 additions & 15 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,86 @@
version: "3.7"

---
services:
backend:
user: "${UID:?Set UID env variable to your user id}"
build:
context: .
target: dev
depends_on:
- mailhog
- db
environment:
- ENV=dev
- EMAIL_URL=smtp://mailhog:1025
- DJANGO_OIDC_USERNAME_CLAIM=preferred_username
- DJANGO_DATABASE_HOST=db
- DJANGO_DATABASE_PORT=5432
- STATIC_ROOT=/var/www/static
volumes:
- ./:/app
ports:
- 8000:8080
- 8081:8081
networks:
- timed.local

frontend:
image: ghcr.io/adfinis/timed-frontend:latest
ports:
- 4200:80
environment:
- TIMED_SSO_CLIENT_HOST=http://timed.local/auth/realms/timed/protocol/openid-connect
- TIMED_SSO_CLIENT_ID=timed-public
networks:
- timed.local

keycloak:
image: quay.io/keycloak/keycloak:10.0.1
volumes:
- ./dev-config/keycloak-config.json:/etc/keycloak/keycloak-config.json:rw
depends_on:
- db
environment:
- DB_VENDOR=postgres
- DB_ADDR=db
- DB_USER=timed
- DB_DATABASE=timed
- DB_PASSWORD=timed
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
# start keycloak with the following command to perform an export of the `timed` realm.
#command: ["-Dkeycloak.migration.action=export", "-Dkeycloak.migration.realmName=timed", "-Dkeycloak.migration.provider=singleFile", "-Dkeycloak.migration.file=/etc/keycloak/keycloak-config.json", "-b", "0.0.0.0"]
command:
[
"-Dkeycloak.migration.action=import",
"-Dkeycloak.migration.provider=singleFile",
"-Dkeycloak.migration.file=/etc/keycloak/keycloak-config.json",
"-b",
"0.0.0.0",
]
networks:
- timed.local

proxy:
image: nginx:1.17.10-alpine
ports:
- 80:80
volumes:
- ./dev-config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
timed.local:
aliases:
- timed.local

mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
environment:
- MH_UI_WEB_PATH=mailhog
networks:
- timed.local

db:
image: postgres:14.4
ports:
Expand All @@ -13,19 +93,6 @@ services:
networks:
- timed.local

backend:
build: .
ports:
- 8000:8080
depends_on:
- db
environment:
- DJANGO_DATABASE_HOST=db
- DJANGO_DATABASE_PORT=5432
- STATIC_ROOT=/var/www/static
networks:
- timed.local

volumes:
dbdata:

Expand Down

0 comments on commit 758b576

Please sign in to comment.