Blame
522f78 | MB Tech | 2025-05-26 21:02:42 | 1 | # Koillection |
2 | ||||
3 | ## Docker compose file |
|||
4 | ||||
a04a83 | MB Tech | 2025-05-26 21:06:32 | 5 | ```yaml |
522f78 | MB Tech | 2025-05-26 21:02:42 | 6 | services: |
7 | # Koillection |
|||
8 | koillection: |
|||
9 | image: koillection/koillection |
|||
10 | container_name: koillection |
|||
11 | restart: unless-stopped |
|||
12 | ports: |
|||
13 | - 8080:80 |
|||
14 | env_file: |
|||
15 | - stack.env |
|||
16 | depends_on: |
|||
17 | - db |
|||
18 | volumes: |
|||
19 | - ./volumes/koillection/uploads:/uploads |
|||
20 | ||||
21 | # Database : choose one of the following |
|||
22 | db: |
|||
23 | image: postgres:16 |
|||
24 | container_name: db |
|||
25 | restart: unless-stopped |
|||
26 | env_file: |
|||
27 | - stack.env |
|||
28 | environment: |
|||
29 | - POSTGRES_DB=${DB_NAME} |
|||
30 | - POSTGRES_USER=${DB_USER} |
|||
31 | - POSTGRES_PASSWORD=${DB_PASSWORD} |
|||
32 | volumes: |
|||
33 | - ./volumes/postgresql:/var/lib/postgresql/data |
|||
34 | ``` |
|||
e3c4cc | MB Tech | 2025-05-26 21:18:06 | 35 | Environment file called stack.env if using portainer |
36 | ||||
37 | ```yaml |
|||
38 | APP_DEBUG=0 |
|||
39 | APP_ENV=prod |
|||
40 | HTTPS_ENABLED=1 |
|||
41 | UPLOAD_MAX_FILESIZE=20M |
|||
42 | PHP_MEMORY_LIMIT=512M |
|||
43 | PHP_TZ=Europe/Paris |
|||
44 | CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' |
|||
45 | JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem |
|||
46 | JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem |
|||
47 | DB_DRIVER=pdo_pgsql |
|||
48 | DB_NAME=koillection |
|||
49 | DB_HOST=db |
|||
50 | DB_PORT=5432 |
|||
51 | DB_USER=koillection |
|||
52 | DB_PASSWORD=change_me! |
|||
53 | DB_VERSION=16 |
|||
54 | ``` |