almost release v0.2

This commit is contained in:
pigwin
2025-01-09 20:13:55 +00:00
parent afd6b12acf
commit 14af72959e
2 changed files with 30 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# TI1 # TI1
The best thing to happen since yesterday at 3 pm The best thing to happen since yesterday at 2:57 pm
## Usage ## Usage
@@ -30,8 +30,21 @@ services:
retries: 5 retries: 5
restart: always # Ensure the container always restarts restart: always # Ensure the container always restarts
valkey:
image: valkey/valkey:latest
container_name: valkey
environment:
VALKEY_PASSWORD: the_valkey_password
ports:
- "6379:6379"
volumes:
- ./valkey_data:/data
networks:
- app-network
restart: always # Ensure the container always restarts
ti1-container: ti1-container:
image: pigwin1/ti1:v0.1.1 image: pigwin1/ti1:dev
container_name: ti1-container container_name: ti1-container
environment: environment:
DB_HOST: db DB_HOST: db
@@ -40,9 +53,14 @@ services:
DB_PASSWORD: ti1password DB_PASSWORD: ti1password
DB_NAME: ti1 DB_NAME: ti1
DB_SSLMODE: disable DB_SSLMODE: disable
VALKEY_HOST: valkey
VALKEY_PORT: 6379
VALKEY_PASSWORD: the_valkey_password
depends_on: depends_on:
db: db:
condition: service_healthy # Wait until the db service is healthy condition: service_healthy # Wait until the db service is healthy
valkey:
condition: service_started # Wait until the valkey service is started
networks: networks:
- app-network - app-network
restart: always # Ensure the container always restarts restart: always # Ensure the container always restarts
@@ -54,6 +72,8 @@ networks:
volumes: volumes:
postgres_data: postgres_data:
driver: local driver: local
valkey_data:
driver: local
``` ```
Create `init.sql` Create `init.sql`

View File

@@ -9,7 +9,7 @@ import (
) )
func main() { func main() {
log.Println("ti1 v0.1.2 - 09.01.2025..") log.Println("ti1 v0.2")
log.Println("Starting...") log.Println("Starting...")
// Setup the database // Setup the database