feat: setup docker, backend, and gitea pipeline for production
All checks were successful
Build and Deploy / build-and-push (push) Successful in 4m19s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 4m19s
This commit is contained in:
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
image: gitea.blyzer.com.br/blyzer/fasto:latest
|
||||
container_name: fasto-app
|
||||
ports:
|
||||
- "3001:3001"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
- DB_HOST=db
|
||||
- DB_USER=${DB_USER:-root}
|
||||
- DB_PASSWORD=${DB_PASSWORD:-root_password}
|
||||
- DB_NAME=${DB_NAME:-agenciac_comia}
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: fasto-db
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-root_password}
|
||||
MYSQL_DATABASE: ${DB_NAME:-agenciac_comia}
|
||||
volumes:
|
||||
- ./agenciac_comia.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
- db_data:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
|
||||
runner:
|
||||
image: gitea/act_runner:latest
|
||||
container_name: fasto-runner
|
||||
environment:
|
||||
- GITEA_INSTANCE_URL=https://gitea.example.com
|
||||
- GITEA_RUNNER_REGISTRATION_TOKEN=CHANGE_ME_TOKEN_FROM_SERVER
|
||||
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-fasto-runner}
|
||||
- GITEA_RUNNER_LABELS=${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://node:16-bullseye}
|
||||
volumes:
|
||||
- ./fasto_runner/data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user