-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.72 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
58
59
60
61
62
63
64
65
66
67
# https://docs.4gaboards.com/docs/dev/install/docker-vars
services:
db:
image: postgres:18-alpine
restart: always
networks:
- boards-network
volumes:
- db-data-18:/var/lib/postgresql
environment:
POSTGRES_DB: 4gaBoards
POSTGRES_PASSWORD: notpassword
POSTGRES_INITDB_ARGS: '-A scram-sha-256'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d 4gaBoards']
interval: 5s
timeout: 5s
retries: 20
redis:
image: redis:8-alpine
restart: always
networks:
- boards-network
volumes:
- redis-data-8:/data
command: ['redis-server', '--appendonly', 'yes', '--requirepass', 'notredispassword']
healthcheck:
test: ['CMD-SHELL', 'redis-cli -a "notredispassword" ping | grep PONG']
interval: 5s
timeout: 5s
retries: 20
4gaBoards:
image: ghcr.io/rargames/4gaboards:latest
restart: always
networks:
- boards-network
volumes:
- user-avatars:/app/public/user-avatars
- project-background-images:/app/public/project-background-images
- attachments:/app/private/attachments
ports:
- 3000:1337
environment:
BASE_URL: http://localhost:3000
SECRET_KEY: notsecretkey
DATABASE_URL: postgresql://postgres:notpassword@db/4gaBoards
NODE_ENV: production
UPLOAD_RATE_LIMIT_STORE: redis
UPLOAD_RATE_LIMIT_REDIS_URL: redis://:notredispassword@redis:6379/0
## Add optional 4ga Boards instance variables here
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
user-avatars:
project-background-images:
attachments:
db-data-18:
redis-data-8:
networks:
boards-network: