Skip to content

Commit

Permalink
chore: rename docker compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
peschina committed Jul 8, 2024
1 parent d577c3c commit 292aa59
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 65 deletions.
4 changes: 2 additions & 2 deletions README.OGCIO.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ You can also run Logto natively on your machine outside the docker container.

If you start Logto natively, the database won't be available, and you will have to start it separately. The database is still dockerized and has its own Docker Compose configuration. Use the following command to start the database container:

`docker compose -f docker-compose-ogcio-logto.yml up -d postgres`
`docker compose -f docker-compose-local.yml up -d postgres`

With the following command, you can shut down the database container:

`docker compose -f docker-compose-ogcio-logto.yml down postgres`
`docker compose -f docker-compose-local.yml down postgres`

### Configuration and installation

Expand Down
18 changes: 17 additions & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
depends_on:
postgres:
condition: service_healthy
image: local-logto:latest
mygovid-mock-service:
condition: service_started
image: 730335224023.dkr.ecr.eu-west-1.amazonaws.com/life-events-logto:dev
entrypoint:
[
"sh",
Expand All @@ -23,6 +25,9 @@ services:
- ADMIN_ENDPOINT
- PORT=3301
- ADMIN_PORT=3302
- MOCK_TOKEN_ENDPOINT=http://mygovid-mock-service:4005/logto/mock/token
- MOCK_KEYS_ENDPOINT=http://mygovid-mock-service:4005/logto/mock/keys

postgres:
image: postgres:14-alpine
user: postgres
Expand All @@ -40,6 +45,17 @@ services:
ports:
- 5433:5433

mygovid-mock-service:
image: mygovid-mock-service:latest
build:
dockerfile: ./mygovid-mock-service/Dockerfile
ports:
- 4005:4005

volumes:
db:
driver: local

networks:
logto_network:
external: true
61 changes: 0 additions & 61 deletions docker-compose-ogcio-logto.yml

This file was deleted.

2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ down:
docker-compose -f docker-compose-local.yml down
run-native:
@echo "${GREEN}Starting db...${NC}"
docker compose -f docker-compose-ogcio-logto.yml up --detach postgres
docker compose -f docker-compose-local.yml up --detach postgres
@echo "${GREEN}Db started!${NC}"
@echo "${GREEN}Installing stuffs...${NC}"
pnpm pnpm:devPreinstall && pnpm i && pnpm prepack
Expand Down

0 comments on commit 292aa59

Please sign in to comment.