Skip to content
Snippets Groups Projects
Commit df7edab6 authored by Christoffer Stoll's avatar Christoffer Stoll
Browse files

Added variable for container name in docker-compose file

parent eb0ee3b0
No related branches found
No related tags found
1 merge request!28Added variable for container name in docker-compose file
......@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
Changes before version 3.1.0 is not included
## [latest commits]
- Added variable for container name in docker-compose file
## [3.1.1] - 2024-06-28
### Fixed
......
......@@ -38,6 +38,8 @@ CLIENT_PORT=80
DB_URI = postgresql://dbuser:password@host:5432/database
JWT_ACCESS_TOKEN_EXPIRES_SECONDS = 3600
JWT_SECRET_KEY = make-up-a-secure-key
CONTAINER_NAME_API = raven-api
CONTAINER_NAME_CLIENT = raven-client
```
`Hint: Use host.docker.internal if database is local. Ip 172.17.0.1 for Linux`
......
......@@ -3,8 +3,8 @@ services:
build:
context: .
dockerfile: Dockerfile.api
image: raven-api
container_name: raven-api
image: ${CONTAINER_NAME_API:-raven-api}
container_name: ${CONTAINER_NAME_API:-raven-api}
sysctls:
- net.ipv4.tcp_keepalive_time=200
ports:
......@@ -14,8 +14,8 @@ services:
build:
context: .
dockerfile: Dockerfile.client
image: raven-client
container_name: raven-client
image: ${CONTAINER_NAME_CLIENT:-raven-client}
container_name: ${CONTAINER_NAME_CLIENT:-raven-client}
depends_on:
- api
ports:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment