Replies: 4 comments 1 reply
-
@Verssgn Please provide information about these errors. |
Beta Was this translation helpful? Give feedback.
-
Thank you. Maybe it's because I am binding both volumes that start with ./ and ones that don't. I am extremely new to this, but maybe that's why? This is how my compose file looks like services:
app:
restart: always
image: "solidtime/solidtime:${SOLIDTIME_IMAGE_TAG:-latest}"
user: "1000:1000"
ports:
- '${FORWARD_APP_PORT:-8000}:8000'
networks:
- internal
volumes:
- "C:/DOCKER/Solidtime/app-storage/app/storage:/var/www/html/storage"
- "C:/DOCKER/Solidtime/logs/app:/var/www/html/storage/logs"
- "C:/DOCKER/Solidtime/app-storage/app/app:/var/www/html/storage/app"
environment:
CONTAINER_MODE: http
healthcheck:
test: [ "CMD-SHELL", "curl --fail http://localhost:8000/health-check/up || exit 1" ]
env_file:
- laravel.env
depends_on:
- database
scheduler:
restart: always
image: "solidtime/solidtime:${SOLIDTIME_IMAGE_TAG:-latest}"
user: "1000:1000"
networks:
- internal
volumes:
- "C:/DOCKER/Solidtime/app-storage/volumes/storage:/var/www/html/storage"
- "C:/DOCKER/Solidtime/logs/volumes:/var/www/html/storage/logs"
- "C:/DOCKER/Solidtime/app-storage/volumes/app:/var/www/html/storage/app"
environment:
CONTAINER_MODE: scheduler
healthcheck:
test: [ "CMD-SHELL", "supervisorctl status scheduler:scheduler_00" ]
env_file:
- laravel.env
depends_on:
- database
queue:
restart: always
image: "solidtime/solidtime:${SOLIDTIME_IMAGE_TAG:-latest}"
user: "1000:1000"
networks:
- internal
volumes:
- "C:/DOCKER/Solidtime/app-storage/queue/storage:/var/www/html/storage"
- "C:/DOCKER/Solidtime/queue/logs:/var/www/html/storage/logs"
- "C:/DOCKER/Solidtime/app-storage/queue/app:/var/www/html/storage/app"
environment:
CONTAINER_MODE: worker
WORKER_COMMAND: "php /var/www/html/artisan queue:work"
healthcheck:
test: [ "CMD-SHELL", "supervisorctl status worker:worker_00" ]
env_file:
- laravel.env
depends_on:
- database
database:
restart: always
image: 'postgres:15'
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'database-storage:/var/lib/postgresql/data'
networks:
- internal
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- '${DB_DATABASE}'
- '-U'
- '${DB_USERNAME}'
retries: 3
timeout: 5s
gotenberg:
image: gotenberg/gotenberg:8
networks:
- internal
healthcheck:
test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:3000/health" ]
networks:
internal:
volumes:
database-storage:
app-storage: And this is how my terminal looks like:
|
Beta Was this translation helpful? Give feedback.
-
Why did you change the path from |
Beta Was this translation helpful? Give feedback.
-
I am no expert either which explains my issue. in a different container ./ did not work so I was using full path / which worked. I completely re-did my installation of everything after finding out that's not how its supposed to behave and now everything works fine including binding solidtime volumes. Thank you for your assistance and sorry for waisting your time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am new to self-hosting. I have been able to bind a volume to local storage in every container I have used other than solidtime where I get errors. I do it by changing the paths before the : in the compose file. And no matter what I change it does not work.
How can I fix this? Thank you, I am on Windows 11 and using the example compose file.
Beta Was this translation helpful? Give feedback.
All reactions