Skip to content

Commit d0d2f4d

Browse files
committed
chore(ci): remove example test, improve compose files
1 parent 9d5aaf7 commit d0d2f4d

4 files changed

Lines changed: 81 additions & 21 deletions

File tree

docker-compose.dev.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: '3.8'
2+
3+
services:
4+
app:
5+
build:
6+
context: .
7+
dockerfile: docker/production/Dockerfile
8+
args:
9+
USER_ID: ${USER_ID:-9999}
10+
GROUP_ID: ${GROUP_ID:-9999}
11+
SERVERSIDEUP_PHP_VERSION: ${PHP_VERSION:-8.4-fpm-nginx-alpine}
12+
POSTGRES_VERSION: ${POSTGRES_VERSION:-17}
13+
restart: unless-stopped
14+
ports:
15+
- '8080:8080'
16+
environment:
17+
APP_NAME: ${APP_NAME:-Peeper}
18+
APP_ENV: ${APP_ENV:-development}
19+
APP_KEY: ${APP_KEY}
20+
APP_DEBUG: true
21+
APP_URL: ${APP_URL:-http://127.0.0.1:8080}
22+
DB_CONNECTION: ${DB_CONNECTION:-sqlite}
23+
SESSION_DRIVER: ${SESSION_DRIVER:-database}
24+
CACHE_STORE: ${CACHE_STORE:-database}
25+
volumes:
26+
- storage:/var/www/html/storage
27+
networks:
28+
- peeper-network
29+
healthcheck:
30+
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:8080/healthcheck']
31+
interval: 30s
32+
timeout: 10s
33+
retries: 3
34+
start_period: 30s
35+
36+
volumes:
37+
storage:
38+
39+
networks:
40+
peeper-network:
41+
driver: bridge

docker-compose.prod.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,32 @@ version: '3.8'
22

33
services:
44
app:
5-
build:
6-
context: .
7-
dockerfile: docker/production/Dockerfile
8-
args:
9-
USER_ID: ${USER_ID:-9999}
10-
GROUP_ID: ${GROUP_ID:-9999}
11-
SERVERSIDEUP_PHP_VERSION: ${PHP_VERSION:-8.4-fpm-nginx-alpine}
12-
POSTGRES_VERSION: ${POSTGRES_VERSION:-17}
5+
image: ghcr.io/climactic/peeper:latest
136
restart: unless-stopped
147
ports:
158
- '8080:8080'
16-
env_file:
17-
- .env.production
9+
environment:
10+
APP_NAME: ${APP_NAME:-Peeper}
11+
APP_ENV: ${APP_ENV:-production}
12+
APP_KEY: ${APP_KEY}
13+
APP_DEBUG: false
14+
APP_URL: ${APP_URL:-http://127.0.0.1:8080}
15+
DB_CONNECTION: ${DB_CONNECTION:-pgsql}
16+
DB_HOST: ${DB_HOST:-db}
17+
DB_PORT: ${DB_PORT:-5432}
18+
DB_DATABASE: ${DB_DATABASE:-postgres}
19+
DB_USERNAME: ${DB_USERNAME:-postgres}
20+
DB_PASSWORD: ${DB_PASSWORD}
21+
SESSION_DRIVER: ${SESSION_DRIVER:-database}
22+
CACHE_STORE: ${CACHE_STORE:-database}
1823
volumes:
1924
- storage:/var/www/html/storage
2025
networks:
2126
- peeper-network
2227
depends_on:
2328
- db
2429
healthcheck:
25-
test: ['CMD', 'curl', '-f', 'http://localhost:8080/healthcheck']
30+
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:8080/healthcheck']
2631
interval: 30s
2732
timeout: 10s
2833
retries: 3
@@ -35,9 +40,9 @@ services:
3540
volumes:
3641
- postgres_data:/var/lib/postgresql/data
3742
environment:
38-
POSTGRES_PASSWORD: test
39-
POSTGRES_USER: postgres
40-
POSTGRES_DB: postgres
43+
POSTGRES_PASSWORD: ${DB_PASSWORD}
44+
POSTGRES_USER: ${DB_USERNAME:-postgres}
45+
POSTGRES_DB: ${DB_DATABASE:-postgres}
4146
ports:
4247
- 5432:5432
4348
networks:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
echo ""
4+
echo " /\$\$\$\$\$\$\$ "
5+
echo "| \$\$__ \$\$ "
6+
echo "| \$\$ \ \$\$ /\$\$\$\$\$\$ /\$\$\$\$\$\$ /\$\$\$\$\$\$ /\$\$\$\$\$\$ /\$\$\$\$\$\$ "
7+
echo "| \$\$\$\$\$\$\$//\$\$__ \$\$ /\$\$__ \$\$ /\$\$__ \$\$ /\$\$__ \$\$ /\$\$__ \$\$"
8+
echo "| \$\$____/| \$\$\$\$\$\$\$\$| \$\$\$\$\$\$\$\$| \$\$ \ \$\$| \$\$\$\$\$\$\$\$| \$\$ \__/"
9+
echo "| \$\$ | \$\$_____/| \$\$_____/| \$\$ | \$\$| \$\$_____/| \$\$ "
10+
echo "| \$\$ | \$\$\$\$\$\$\$| \$\$\$\$\$\$\$| \$\$\$\$\$\$\$/| \$\$\$\$\$\$\$| \$\$ "
11+
echo "|__/ \_______/ \_______/| \$\$____/ \_______/|__/ "
12+
echo " | \$\$ "
13+
echo " | \$\$ "
14+
echo " |__/ "
15+
echo ""
16+
echo -e "\e[36m----------------------------------------\e[0m"
17+
echo -e "\e[1;32mWelcome to Peeper\e[0m, the \e[1;34moperating system for your data\e[0m."
18+
echo -e "Visit \e[1;36mhttps://github.com/climactic/peeper\e[0m to learn more about Peeper."
19+
echo -e "If you find Peeper useful, please consider supporting the project by giving it a \e[1;33mstar on GitHub\e[0m or \e[1;35mSponsoring\e[0m!"
20+
echo -e "Website: \e[1;36mhttps://peeper.dev\e[0m"
21+
echo -e "\e[36m----------------------------------------\e[0m"

tests/Feature/ExampleTest.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)