Skip to content

Commit 2615abe

Browse files
committed
✨ added crater.financial
1 parent 333a729 commit 2615abe

File tree

2 files changed

+148
-0
lines changed

2 files changed

+148
-0
lines changed

Diff for: crater/Readme.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Craterapp - Embedded Invoicing & Bill Pay for platforms.
2+
3+
origin: https://crater.financial/
4+
5+
## How to Install:
6+
7+
Clone the repository by running this command:
8+
9+
```sh
10+
$ git clone https://github.com/crater-invoice/crater
11+
```
12+
13+
Change your current working directory and run your app using below commands:
14+
15+
```sh
16+
$ cd crater
17+
$ cp .env.example .env
18+
```
19+
20+
edit .env for your needs.
21+
22+
```sh
23+
code .env
24+
```
25+
26+
continue with
27+
28+
```sh
29+
$ cp docker-compose.yml crater/docker-compose.yml
30+
$ docker-compose up -d
31+
$ ./docker-compose/setup.sh
32+
```
33+
34+
Update Docker-Compose for your needs:
35+
36+
```yml
37+
nginx:
38+
container_name: crater-nginx
39+
image: nginx:1.17-alpine
40+
restart: unless-stopped
41+
#ports:
42+
#- 8083:80
43+
volumes:
44+
- ./:/var/www
45+
- ./docker-compose/nginx:/etc/nginx/conf.d/
46+
networks:
47+
- crater
48+
- proxy
49+
labels:
50+
- "traefik.enable=true" #<== Enable traefik
51+
- "traefik.http.routers.crater-secured.rule=Host(`finance.${DOMAIN}`)" #<== Set domain
52+
- "traefik.http.routers.crater-secured.entrypoints=websecure" #<== Set entry point for HTTPS
53+
- "traefik.http.routers.crater-secured.tls.certresolver=mytlschallenge" #<== Set certsresolvers for https
54+
#- "traefik.http.routers.crater-secured.middlewares=authelia" #<== Add Authelia middlewares to protect login
55+
- "traefik.http.routers.crater-secured.service=crater-service" #<== Set service
56+
- "traefik.http.services.crater-service.loadbalancer.server.port=80" #<== Set target port on container
57+
```
58+
59+
watch out for
60+
61+
```yml
62+
- "traefik.http.routers.crater-secured.middlewares=authelia"
63+
```
64+
65+
if you want to be protected by authelia and make sure, you've added DOMAIN to your .env and customized for your needs.
66+
67+
```yml
68+
- "traefik.http.routers.crater-secured.rule=Host(`finance.${DOMAIN}`)"
69+
```
70+

Diff for: crater/docker-compose.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
version: '3'
2+
3+
services:
4+
app:
5+
container_name: crater-app
6+
build:
7+
args:
8+
user: crater-user
9+
uid: 1000
10+
context: ./
11+
dockerfile: Dockerfile
12+
image: crater-php
13+
restart: unless-stopped
14+
working_dir: /var/www/
15+
volumes:
16+
- ./:/var/www
17+
- ./docker-compose/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:rw,delegated
18+
networks:
19+
- crater
20+
21+
db:
22+
container_name: crater-db
23+
image: mariadb
24+
restart: always
25+
volumes:
26+
# - db:/var/lib/mysql
27+
# If you want to persist data on the host, comment the line above this one...
28+
# and uncomment the line under this one.
29+
- ./docker-compose/db/data:/var/lib/mysql:rw,delegated
30+
environment:
31+
MYSQL_USER: ${DB_USERNAME}
32+
MYSQL_PASSWORD: ${DB_PASSWORD}
33+
MYSQL_DATABASE: ${DB_DATABASE}
34+
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
35+
#ports:
36+
#- '33006:3306'
37+
networks:
38+
- crater
39+
40+
nginx:
41+
container_name: crater-nginx
42+
image: nginx:1.17-alpine
43+
restart: unless-stopped
44+
#ports:
45+
#- 8083:80
46+
volumes:
47+
- ./:/var/www
48+
- ./docker-compose/nginx:/etc/nginx/conf.d/
49+
networks:
50+
- crater
51+
- proxy
52+
labels:
53+
- "traefik.enable=true" #<== Enable traefik
54+
- "traefik.http.routers.crater-secured.rule=Host(`finance.${DOMAIN}`)" #<== Set domain
55+
- "traefik.http.routers.crater-secured.entrypoints=websecure" #<== Set entry point for HTTPS
56+
- "traefik.http.routers.crater-secured.tls.certresolver=mytlschallenge" #<== Set certsresolvers for https
57+
#- "traefik.http.routers.crater-secured.middlewares=authelia" #<== Add Authelia middlewares to protect login
58+
- "traefik.http.routers.crater-secured.service=crater-service" #<== Set service
59+
- "traefik.http.services.crater-service.loadbalancer.server.port=80" #<== Set target port on container
60+
61+
cron:
62+
container_name: crater-cron
63+
build:
64+
context: ./
65+
dockerfile: ./docker-compose/cron.dockerfile
66+
volumes:
67+
- ./:/var/www
68+
networks:
69+
- crater
70+
71+
volumes:
72+
db:
73+
74+
networks:
75+
proxy:
76+
external: true
77+
crater:
78+
driver: bridge

0 commit comments

Comments
 (0)