Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Release 2.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 authored Jul 29, 2021
2 parents c56c5bb + d1054b6 commit 5eb593d
Show file tree
Hide file tree
Showing 11 changed files with 2,159 additions and 240 deletions.
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

25 changes: 14 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: "3.9"
services:
cad:
build: .
command: "npm run docker-start"
container_name: "SnailyCAD-web"
image: node:16
restart: always
ports:
- "3030:3030"
Expand All @@ -11,16 +13,14 @@ services:
DB_PASSWORD: "${DB_PASSWORD}"
JWT_SECRET: "${JWT_SECRET}"
PORT: 3030
healthcheck:
test: curl -f http://cad:3030/health/liveness || exit 1
interval: 5s
timeout: 10s
retries: 3
start_period: 60s
working_dir: /srv/api
volumes:
- .:/srv/api
depends_on:
database:
condition: service_healthy
- database

admin:
container_name: "SnailyCAD-PHPMyAdmin"
image: "phpmyadmin:5.1.0"
restart: always
ports:
Expand All @@ -30,9 +30,10 @@ services:
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
depends_on:
database:
condition: service_healthy
- database

database:
container_name: "SnailyCAD-MySQL-Database"
image: "mysql:5.7"
volumes:
- db_data:/var/lib/mysql
Expand All @@ -41,11 +42,13 @@ services:
ports:
- "3306:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
healthcheck:
test: "/etc/init.d/mysql status"
timeout: 5s
retries: 3

volumes:
db_data: {}
Loading

0 comments on commit 5eb593d

Please sign in to comment.