mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-18 00:19:48 +01:00
working ssh step
This commit is contained in:
parent
09c13a21bd
commit
b78ec26cc6
14
.env.example
14
.env.example
@ -1,14 +0,0 @@
|
|||||||
# Tokens
|
|
||||||
DISCORD_TOKEN= # Bot token from: https://discord.com/developers/
|
|
||||||
|
|
||||||
# Configuration
|
|
||||||
DEFAULT_PREFIX= # Prefix used to run commands in Discord
|
|
||||||
DEVELOPMENT= # (true/false) Enables developer mode
|
|
||||||
|
|
||||||
# Docker
|
|
||||||
POSTGRES_USER=USERNAME
|
|
||||||
POSTGRES_PASSWORD=PASSWORD
|
|
||||||
POSTGRES_DB=DB
|
|
||||||
|
|
||||||
# Database URL (designed for Postgres, but designed on Prisma)
|
|
||||||
DATABASE_URL= # "postgresql://USERNAME:PASSWORD@postgres:5432/DB?schema=ara&sslmode=prefer"
|
|
||||||
@ -17,7 +17,7 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eslint:
|
deploy:
|
||||||
name: Deploy Bot
|
name: Deploy Bot
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -2,6 +2,7 @@ version: "3.7"
|
|||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14
|
image: postgres:14
|
||||||
|
profiles: ["standalone"]
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
@ -11,10 +12,11 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7
|
image: redis:7
|
||||||
|
profiles: ["standalone", "prod"]
|
||||||
container_name: redis
|
container_name: redis
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env.prod
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- redis:/data
|
||||||
|
|
||||||
@ -22,11 +24,12 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
profiles: ["standalone", "prod"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env.prod
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres:
|
postgres:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user