-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
64 lines (61 loc) · 2.67 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Define what services to set up for local development
services:
# Set up a simple mongo database for local development
mongo-db:
image: mongo:4.4.22 # Same as the version in the prod env
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: toor
MONGO_INITDB_DATABASE: wls
ports:
- "27017:27017"
volumes:
# Copy script to populate the database with test data
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
# Set up a mongo-express instance to view the mongo database
# Makes GUI available at: http://localhost:8081
mongo-express:
image: mongo-express:1.0.2
restart: always
ports:
- "8081:8081"
depends_on:
- mongo-db # Needs to have mongo-db container running
environment:
ME_CONFIG_MONGODB_SERVER: mongo-db
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: toor
ME_CONFIG_OPTIONS_EDITORTHEME: "gruvbox-dark"
ME_CONFIG_BASICAUTH: false
# Set up a local keycloak instance for local development
# Keycloak is configured to automatically import a test realm with service accounts
# Makes GUI available at: http://localhost:8082
#
# When making changes to the realm, export the realm and save it in the keycloak/import folder
# docker exec -it wls-local-keycloak-1 /opt/keycloak/bin/kc.sh export --file "/tmp/mlt-local-realm-export.json" --users "same_file" --realm "mlt-local"
# docker cp wls-local-keycloak-1:/tmp/mlt-local-realm-export.json ./docker/keycloak/import/mlt-local-realm-export.json
# git add docker/keycloak/import/mlt-local-realm-export.json
# This connects interactively to the container, uses keycloak export command to export the realm, copies the file to the local machine, and adds it to git
#
# Also, since I am a lazy boi: axiell -> E93MF2F8UfpRrCowAbVMStvsTzy0gmgr
keycloak:
image: quay.io/keycloak/keycloak:24.0.1 # Same as the version in prod env
restart: always
hostname: keycloak
environment:
KEYCLOAK_ADMIN: root
KEYCLOAK_ADMIN_PASSWORD: toor
ports:
- "8082:8080"
command: start-dev --import-realm # Automatically import realm on startup with needed clients
volumes:
- ./keycloak/import:/opt/keycloak/data/import
# Set up a local SynQ instance for local development
# Provides an option to test out communication with SynQ API locally, without the need to use SynQ in dev/prod environments
# Makes Swagger GUI available at: http://localhost:8181/synq/swagger
dummy-synq:
image: harbor.nb.no/mlt/dummy-synq:main # Get the "latest" version of the dummy-synq image
restart: always
ports:
- "8181:8181"