Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
1. Create `admin` user, add to `sudo` group
1. Put all your secrets into `/opt/.env` file
1. Put S3 secrets into `/home/admin/.aws/credentials` (according to boto3)
1. Put Flask dashboard config into `/opt/dashboard.cfg` file
1. Run ansible
33 changes: 32 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.8'
services:
app:
build:
Expand All @@ -18,6 +17,7 @@ services:
- rabbitmq
- image_resizer
- redis
- keycloak

image_resizer:
build:
Expand All @@ -29,6 +29,36 @@ services:
volumes:
- ./image_resizer:/opt/image_resizer
- images:/images

postgres:
image: postgres:16.0
environment:
POSTGRES_USER: testkeycloakuser
POSTGRES_PASSWORD: testkeycloakpassword
POSTGRES_DB: testkeycloakdb
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always

keycloak:
image: keycloak/keycloak:26.0.1
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres:5432/testkeycloakdb
- KC_DB_USERNAME=testkeycloakuser
- KC_DB_PASSWORD=testkeycloakpassword
- KC_HOSTNAME=localhost
- KC_PROXY=edge
- KC_LOG_LEVEL=DEBUG
ports:
- 8080:8080
command: "start-dev"
depends_on:
- postgres

elasticsearch:
build:
Expand Down Expand Up @@ -75,3 +105,4 @@ services:
volumes:
esdata01:
images:
postgres_data:
2 changes: 1 addition & 1 deletion image_resizer