Skip to content

Commit

Permalink
chore: improve docker running steps pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
eum602 committed Sep 27, 2023
1 parent fa12f1b commit 4f524f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 2 additions & 6 deletions docker-compose-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ services:
POSTGRES_PASSWORD: ${TYPEORM_PASSWORD}
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
- type: bind
source: ./pg-prod-db
target: /var/lib/postgresql/data
volume:
nocopy: true
- ./postgres-data:/var/lib/postgresql/data
networks:
- backend
redis:
Expand All @@ -23,7 +19,7 @@ services:
networks:
- backend
rust-api-base:
image: eumb602/lacpass-trusted-list:0.0.1
image: eumb602/lacpass-trusted-list:latest
environment:
PORT: "${PORT}"
JWT_SECRET: "${JWT_SECRET}"
Expand Down
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ services:
POSTGRES_PASSWORD: ${TYPEORM_PASSWORD}
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
- type: bind
source: ./pg-prod-db
target: /var/lib/postgresql/data
volume:
nocopy: true
- ./postgres-data:/var/lib/postgresql/data
networks:
- backend
redis:
Expand Down
4 changes: 0 additions & 4 deletions docs/tech/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ The following commands will build and run all you need to start working on the b
docker network create backend
```

```
mkdir pg-prod-db
```

```
docker-compose -f docker-compose.yml --env-file .env.prod build
```
Expand Down

0 comments on commit 4f524f6

Please sign in to comment.