Skip to content

Commit fe117ab

Browse files
committed
deploy: Add example production compose file.
1 parent b6f7f63 commit fe117ab

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.env.production.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
RAILS_LOG_TO_STDOUT=true
2+
3+
TAP_SECRET_KEY_BASE=5d40610321e19e4f71ee2ba8af4f426fe15096c405da3800c6b33bed6779f2d11f55a0edc455974b19a01fd71f6cd508dba980305dbc55ff82521a2d12f891d8
4+
TAP_OAUTH_CLIENT_ID=tomtest
5+
TAP_OAUTH_CLIENT_SECRET=blargh
6+
TAP_ACCESS_TOKEN=token
7+
TAP_TAB_API_KEY=o6UIYc0r0cvsy0Ohaohqsw==
8+
TAP_KOELKAST_TOKEN=token
9+
10+
MARIADB_RANDOM_ROOT_PASSWORD=true
11+
MARIADB_HOST=db
12+
MARIADB_PORT=3306
13+
MARIADB_USER=tap
14+
MARIADB_PASSWORD=tap
15+
MARIADB_DATABASE=tap

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ public/assets
3535
yarn-debug.log*
3636
.yarn-integrity
3737
/spec/test_files/
38+
39+
.env*
40+
!.env*.example

compose.production.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Example production compose file
2+
services:
3+
tap:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile.production
7+
restart: unless-stopped
8+
env_file: .env.production
9+
ports:
10+
- "127.0.0.1:3000:80" # XXX: Remove this
11+
tmpfs:
12+
- /tap/tmp
13+
depends_on:
14+
- db
15+
16+
db:
17+
image: docker.io/library/mariadb:11.8
18+
restart: unless-stopped
19+
env_file: .env.production
20+
21+
# XXX: Add https proxy here...

0 commit comments

Comments
 (0)