Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Docker Compose #24

Open
LargoUsagi opened this issue Jul 13, 2021 · 5 comments
Open

Docker Compose #24

LargoUsagi opened this issue Jul 13, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@LargoUsagi
Copy link
Collaborator

Creating a docker compose file containing the most basic configurations targeting the deployment on a single machine is desirable for allowing people to use the containerized deployment as the project grows in complexity.

@LargoUsagi LargoUsagi added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 13, 2021
@sgofferj
Copy link

sgofferj commented Aug 1, 2021

I can probably do that as soon as I got my installation running without hicups. I'm anyways on a "docker trip" at the moment, containerizing everything that's not in the trees on 3 😆 .

@simonblund
Copy link

@HeroesLament Any progress on this yet?

I've been spending the evening tryiong to get a docker compose file going, but keep getting stuck at sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file even though I've provided:

  • FTS_DATABASE_TYPE=MySQL
  • FTS_DB_PATH="user:password@localhost:3306/db"

as env vars

@sgofferj
Copy link

localhost in docker means inside the same container. Is your db running in the same container? If not, you have to change that accordingly.

@simonblund
Copy link

Oh good catch, but it doesn't fix the issue. FTS still acts as if it is supposed to connect to a sqlite db.

@simonblund
Copy link

Ah, got it up and running.

https://github.com/CriticalTechIo/FreeTakServer/blob/master/docker-compose.yaml

I'll continue on this path and set up UI and other things as well. And later on try to make a sane setup for creating a local kubernetes cluster.

Btw this was one of the issues I had connecting to DB:
https://github.com/FreeTAKTeam/FreeTakServer/blob/29e3e48fa49972dd021218a6d44d5750c47e8c76/FreeTAKServer/controllers/configuration/MainConfig.py#L118

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants