-
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.
Signed-off-by: Mathieu <[email protected]>
- Loading branch information
1 parent
ae918f4
commit c45705d
Showing
8 changed files
with
120 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# TODO RESTORE | ||
services: | ||
rabbitmq: | ||
image: rabbitmq:3-management | ||
ports: | ||
- "8082:15672" | ||
- "5000:5673" | ||
networks: | ||
- app_network | ||
volumes: | ||
- ./rabbit-mq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf | ||
healthcheck: | ||
test: [ "CMD", "rabbitmqctl", "status" ] | ||
interval: 5s | ||
timeout: 15s | ||
retries: 5 | ||
|
||
mariadb: | ||
image: mariadb:10.4 | ||
ports: | ||
- "3305:3306" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} | ||
MYSQL_DATABASE: ${DB_NAME} | ||
volumes: | ||
- mariadb_data:/var/lib/mysql | ||
networks: | ||
- app_network | ||
healthcheck: | ||
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
# go-app: | ||
# build: | ||
# context: ../. | ||
# dockerfile: Dockerfile | ||
# ports: | ||
# - "8080:8080" | ||
# environment: | ||
# DB_HOST: mariadb | ||
# DB_PORT: 3306 | ||
# DB_NAME: ${DB_NAME} | ||
# DB_USER: root | ||
# DB_PASSWORD: ${DB_PASSWORD} | ||
# SECRET_KEY: ${SECRET_KEY} | ||
# depends_on: | ||
# mariadb: | ||
# condition: service_healthy | ||
# rabbitmq: | ||
# condition: service_healthy | ||
# networks: | ||
# - app_network | ||
|
||
volumes: | ||
mariadb_data: | ||
|
||
networks: | ||
app_network: | ||
driver: bridge |
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
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,10 @@ | ||
package models | ||
|
||
import "gorm.io/gorm" | ||
|
||
type Token struct { | ||
gorm.Model | ||
Value string | ||
ServiceID uint | ||
UserID uint | ||
} |
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
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