generated from well-known-components/template-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Missing glibc using debian slim image * feat: docker compose + Dockerfile using alpine * fix: Delete gcompat * fix: Install libstdc++ and gcompat at the end * chore: Clean up run apk update and add * fix: Avoid using alpine-pkg-glibc * chore: Avoid installing curl
- Loading branch information
1 parent
d48f6ed
commit 517f813
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
container_name: postgres-local | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: social_service_ea | ||
ports: | ||
- '5432:5432' | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
|
||
redis: | ||
image: redis:latest | ||
container_name: redis-local | ||
ports: | ||
- '6379:6379' | ||
|
||
app: | ||
image: social-service-ea:local | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
environment: | ||
PG_COMPONENT_PSQL_CONNECTION_STRING: 'postgresql://postgres:postgres@postgres:5432/social_service_ea' | ||
REDIS_HOST: 'redis' | ||
ports: | ||
- '3000:3000' | ||
depends_on: | ||
- postgres | ||
- redis | ||
|
||
volumes: | ||
postgres-data: |