create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

feat: Use docker compose instead of a single docker container

Open TheDevilOnLine opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

A lot of our developers work on Windows and running start-database.sh requires a bunch of extra steps

Describe the solution you'd like to see

start-database.sh suggest running itself in WSL, but I think it would be way easier to supply a docker-compose.yml. This also allows for random password generation to be used in the docker-compose.yml and in the .env file.

Describe alternate solutions

N/A

Additional information

If people are interested in this solution, I can make a pull request with the suggested functionality.

TheDevilOnLine avatar Jul 02 '24 10:07 TheDevilOnLine

Hi, to clarify, do you see the server and client parts of the nextjs to be separate docker containers? or something else?

datasalaryman avatar Jul 18 '24 09:07 datasalaryman

@datasalaryman just the database (so the stuff that's currently being started into docker when you run the start-database.sh command)

TheDevilOnLine avatar Jul 18 '24 09:07 TheDevilOnLine

@TheDevilOnLine so the docker-compose file will be structured like this?

services:
  web:
    ...
  postgres:
    ...

okay, I'll see if I can take that on

datasalaryman avatar Jul 18 '24 09:07 datasalaryman