commit f8e90cbd66b6084de61a060d052b324fbe152269 Author: stephane.david Date: Sat Nov 16 14:32:17 2024 +0100 First dev version diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/blinko.iml b/.idea/blinko.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/blinko.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0ab47c4 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..b1c1ee6 --- /dev/null +++ b/compose.yml @@ -0,0 +1,50 @@ +services: + db: + image: postgres:17 + container_name: Blinko-DB + hostname: blinko-db + mem_limit: 1g + cpu_shares: 1024 + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD", "pg_isready", "-q", "-d", "blinko", "-U", "blinkouser"] + timeout: 45s + interval: 10s + retries: 10 + volumes: + - /var/lib/docker/blinko/db:/var/lib/postgresql/data:rw + environment: + POSTGRES_DB: blinko + POSTGRES_USER: blinkouser + POSTGRES_PASSWORD: blinkopass + restart: on-failure:5 + + + blinko: + image: blinkospace/blinko:latest + container_name: Blinko + healthcheck: + test: ["CMD-SHELL", "nc -z 127.0.0.1 1111 || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 90s + environment: + NODE_ENV: production + NEXTAUTH_URL: http://blinko-dev.maison + NEXT_PUBLIC_BASE_URL: http://blinko-dev.maison + NEXTAUTH_SECRET: wKIe8YkohAqRkxQv62c8DF0WpUjbU4EQdL6jlDOyBTFYcRL2sJH0Zs8Tj6IAo6Bq + DATABASE_URL: postgresql://blinkouser:blinkopass@blinko-db:5432/blinko + volumes: + - /var/lib/docker/blinko/data:/app/.blinko:rw + logging: + options: + max-size: "10m" + max-file: "3" + ports: + - 1112:1111 + depends_on: + db: + condition: service_healthy + restart: on-failure:5 \ No newline at end of file