Skip to content

Commit 86027fd

Browse files
RambokDevcharlesgauthereau
andauthored
fix: docker compose files [skip-release] (#53)
* fix: s3 port type mismatch, add string_or_number_to_string deserializer * chore: docker-compose.databases.yml --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
1 parent 8eab97a commit 86027fd

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

docker-compose.databases.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: databases
2+
13
services:
24
db-postgres:
35
container_name: db-postgres
@@ -95,7 +97,7 @@ services:
9597
image: redis:latest
9698
container_name: db-redis
9799
ports:
98-
- "6379:6379"
100+
- "6378:6379"
99101
volumes:
100102
- redis-data:/data
101103
command: [ "redis-server", "--appendonly", "yes" ]

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ services:
1313
#- ./databases.toml:/config/config.toml
1414
#- /var/run/docker.sock:/var/run/docker.sock
1515
#- cargo-target:/app/target
16-
#- agent-rust_sqlite-data:/sqlite-data/workspace/data
17-
#- ./scripts/sqlite/test-db:/sqlite-data-2/workspace/data
16+
- databases_sqlite-data:/sqlite-data/workspace/data
17+
- ./scripts/sqlite/test-db:/sqlite-data-2/workspace/data
1818
environment:
1919
APP_ENV: development
2020
LOG: debug
2121
TZ: "Europe/Paris"
22-
EDGE_KEY: "eyJzZXJ2ZXJVcmwiOiJodHRwOi8vbG9jYWxob3N0Ojg4ODciLCJhZ2VudElkIjoiOWRjZjYzNzQtZTc5ZC00MzU5LTkwMTYtNjA0OTQ2NDNhNjEwIiwibWFzdGVyS2V5QjY0IjoiQlhWM1hvbEM2NTZTVjdkTmdjV1BHUWxrKytycExJNmxHRGk3Q1BCNWllbz0ifQ=="
22+
EDGE_KEY: "eyJzZXJ2ZXJVcmwiOiJodHRwOi8vbG9jYWxob3N0Ojg4ODciLCJhZ2VudElkIjoiNTMwMjNkYjQtN2EzYS00ZTM0LTk0MWEtNjU2ZTNlNzE2NzlkIiwibWFzdGVyS2V5QjY0IjoiMUh0djdtWCtYVkJxL0IzUEV2WDlZZjlQeUdVZW5oRHlXemo5THRqNW90WT0ifQ=="
2323
#POOLING: 1
24-
DATABASES_CONFIG_FILE: "config.toml"
24+
#DATABASES_CONFIG_FILE: "config.toml"
2525
extra_hosts:
2626
- "localhost:host-gateway"
2727
networks:
@@ -31,8 +31,8 @@ volumes:
3131
cargo-registry:
3232
cargo-git:
3333
#cargo-target:
34-
# agent-rust_sqlite-data:
35-
# external: true
34+
databases_sqlite-data:
35+
external: true
3636

3737

3838

docker/entrypoints/app-dev-entrypoint.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ check_network() {
3131
fi
3232
}
3333

34-
#check_docker
34+
check_docker
3535
check_network
3636

37-
echo "Starting docker-compose..."
37+
echo "Stopping old database containers..."
38+
docker compose -f ./docker-compose.databases.yml down
39+
40+
echo "Starting database containers..."
3841
docker compose -f ./docker-compose.databases.yml up -d
39-
docker compose -f ./docker-compose.yml up
40-
echo "Docker-compose started successfully."
42+
43+
echo "Starting main services..."
44+
docker compose -f ./docker-compose.yml up

0 commit comments

Comments
 (0)