How to launch cattr via docker compose #142
-
Can't run cattr via docker compose .
I use the chapter "Getting started" : https://docs.cattr.app/#/en/getting-started/
On request Full URL to backend (API) application (example: http://cattr.acme.corp/):
As a result I get an error
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
In general, I want to prepare a working docker-compose.yml that can be quickly launched. |
Beta Was this translation helpful? Give feedback.
-
@x4IPx Hi, I'm not very familiar with docker, Can you help me with the given issue: |
Beta Was this translation helpful? Give feedback.
-
Hello. |
Beta Was this translation helpful? Give feedback.
-
ok thanks for your response. |
Beta Was this translation helpful? Give feedback.
-
You can try to run
But this is a very old but stable version : https://hub.docker.com/r/amazingcat/cattr/tags |
Beta Was this translation helpful? Give feedback.
-
Please see this answer #111 (comment) |
Beta Was this translation helpful? Give feedback.
-
git clone https://github.com/cattr-app/server-application.git
cd server-application
docker compose -f docker-compose2.yml up -d docker-compose2.yml version: '3.9'
services:
app:
build: .
depends_on:
db:
condition: service_healthy
ports:
- 80:80
db:
image: percona:latest
environment:
- MYSQL_DATABASE=cattr
- MYSQL_ROOT_PASSWORD=password
cap_add:
- SYS_NICE
volumes:
- database:/var/lib/mysql
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '--password=password', '-u', 'root']
timeout: 20s
retries: 10
volumes:
database: {}
I get an error when starting
curl http://192.168.77.34/
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html> docker logs server-application-app-1
docker logs server-application-db-1
|
Beta Was this translation helpful? Give feedback.
-
@x4IPx error with s6-rc: fatal: timed out was fixed about a month ago, looks like you need to clear some docker cache |
Beta Was this translation helpful? Give feedback.
Please see this answer #111 (comment)