Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose

A real-world example how to run AltAmino using Docker Compose.

Small breakdown:

api

  • running on 19871 port on host (localhost:19871)
  • running on 8081 in docker network (api:8081)

websocket

  • running on 19872 port on host (localhost:19872)
  • running on 8081 in docker network (websocket:8081)

mongo

  • running on 19873 port on host (localhost:19873)
  • running on 27017 in docker network (mongo:27017)

valkey

  • running on 19874 port on host (localhost:19874)
  • running on 6379 in docker network (valkey:6379)

Important notes!

  1. There is no email server like Maddy provided in this docker compose. It means you can: set up own mail server, rent one, use free one.. or just disable emails completely. Just know that "environment" in docker compose is more important than "env_file".

  2. There is no S3 storage provided like GarageHQ or SeaweedFS. The answer is almost the same as previous, because you MUST set up some S3 storage. Or you will meet consequences in errors' form. I warned ya.

  3. In dev environment you can run api server locally on your machine using host ports instead of docker ones. Which is one in, for example, "1999:27072"? First one is for host machine that runs docker compose. Second one is for docker network to use. You can also instead of IPs use container names (only in docker network btw)! That's why i set up them. Also it's just nicer to read after all.

  4. Please, PLEASE, before setting up .env file look up at altamino/api/helpers/config.py! There is always actual declaration what environment variables this whole setup needs.

About

A real-world example how to run AltAmino using docker compose

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages