LISSY API
Open a psql -U postgres
shell inside the PostgreSQL container and run:
CREATE USER lissy PASSWORD '1234';
CREATE DATABASE lissy OWNER lissy;
sudo docker volume create lissy-api
sudo docker build \
--build-arg DATABASE_URL=postgresql://lissy:1234@postgres:5432/lissy \
-t ai/lissy-api:latest .
sudo docker run \
--name lissy-api \
--restart unless-stopped \
-v lissy-api:/usr/src/app/photos \
-e BOT_TOKEN=<REPLACE> \
-e DATABASE_URL=postgresql://lissy:1234@postgres:5432/lissy \
-d ai/lissy-api:latest
sudo docker network connect nginx lissy-api
sudo docker network connect postgres lissy-api