Skip to content

Commit

Permalink
Create db
Browse files Browse the repository at this point in the history
Signed-off-by: Chaichontat Sriworarat <34997334+chaichontat@users.noreply.github.com>
  • Loading branch information
chaichontat committed Mar 14, 2023
1 parent 1e54dfb commit f917e09
Show file tree
Hide file tree
Showing 7 changed files with 542 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ module.exports = {
browser: true,
es2017: true,
node: true
},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off'
}
};
40 changes: 40 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
services:
baserow:
image: baserow/baserow:1.14.0
ports:
- "80:80"
- "443:443"
volumes:
- baserow_data:/baserow/data
environment:
- BASEROW_PUBLIC_URL=https://baserow.gofflab.org
- BASEROW_CADDY_ADDRESSES=https://baserow.gofflab.org
- EMAIL_SMTP=True
- EMAIL_SMTP_HOST=**EXAMPLE smtp.gmail.com**
- EMAIL_SMTP_PORT=587
- EMAIL_SMTP_USER=**FILL IN YOUR OWN**
- EMAIL_SMTP_PASSWORD=**FILL IN YOUR OWN**
- EMAIL_SMTP_USE_TLS=True
- FROM_EMAIL=**FILL IN YOUR OWN**
- DATABASE_HOST=db
- DATABASE_PASSWORD=**MAKE ONE**

db:
image: postgres:11
restart: unless-stopped
ports:
- "5432:5432"
depends_on:
- baserow
environment:
POSTGRES_USER: baserow
POSTGRES_PASSWORD: **SAME AS DATABASE_PASSWORD**
POSTGRES_DB: baserow
volumes:
- pg_data:/var/lib/postgresql/data
- /home/ubuntu:/temp:ro
volumes:
baserow_data:
external: true
pg_data:
external: true

0 comments on commit f917e09

Please sign in to comment.