-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
57 lines (53 loc) · 1.35 KB
/
docker-compose.prod.yml
File metadata and controls
57 lines (53 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
app:
image: ghcr.io/climactic/peeper:latest
restart: unless-stopped
ports:
- '8080:8080'
environment:
APP_NAME: ${APP_NAME:-Peeper}
APP_ENV: ${APP_ENV:-production}
APP_KEY: ${APP_KEY}
APP_DEBUG: false
APP_URL: ${APP_URL:-http://127.0.0.1:8080}
DB_CONNECTION: ${DB_CONNECTION:-pgsql}
DB_HOST: ${DB_HOST:-db}
DB_PORT: ${DB_PORT:-5432}
DB_DATABASE: ${DB_DATABASE:-postgres}
DB_USERNAME: ${DB_USERNAME:-postgres}
DB_PASSWORD: ${DB_PASSWORD}
SESSION_DRIVER: ${SESSION_DRIVER:-database}
CACHE_STORE: ${CACHE_STORE:-database}
volumes:
- storage:/var/www/html/storage
networks:
- peeper-network
depends_on:
- db
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:8080/healthcheck']
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
db:
image: postgres:${POSTGRES_VERSION:-17}-alpine
restart: always
shm_size: 128mb
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME:-postgres}
POSTGRES_DB: ${DB_DATABASE:-postgres}
ports:
- 5432:5432
networks:
- peeper-network
volumes:
postgres_data:
storage:
networks:
peeper-network:
driver: bridge