-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cf05c8
commit 4c64992
Showing
40 changed files
with
1,627 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DB_HOST=alice_postgres | ||
DB_USER=admin | ||
DB_PASSWORD="password" | ||
DB_NAME=Alice | ||
DB_PORT=5432 | ||
PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Ignore node_modules, mas mantenha o .env | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
package-lock.json | ||
.pnpm-debug.log | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Pastas de build temporárias | ||
dist/ | ||
build/ | ||
|
||
# Imagens ou arquivos de cache temporários | ||
*.tmp | ||
*.temp | ||
*.cache | ||
|
||
# Pastas e arquivos Docker (se estiverem gerados localmente) | ||
docker-compose.override.yml | ||
.Dockerfile | ||
.dockerignore | ||
|
||
# Ignore arquivos de banco de dados e seed locais | ||
postgres-data/ | ||
*.sqlite | ||
|
||
# Outros | ||
.DS_Store | ||
|
||
# Ignorar arquivos .env.local, mas manter o .env | ||
.env.local | ||
.env.* | ||
|
||
# Mantenha o .env no repositório | ||
!.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,58 @@ | ||
version: '3.8' | ||
|
||
services: | ||
postgres: | ||
image: postgres:latest | ||
container_name: postgres | ||
database: | ||
image: postgres:13 | ||
container_name: alice_postgres | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: mydb | ||
POSTGRES_USER: ${DB_USER} | ||
POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
POSTGRES_DB: ${DB_NAME} | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
- postgres-data:/var/lib/postgresql/data | ||
networks: | ||
- backend | ||
|
||
app: | ||
build: ./game/backend | ||
container_name: alice_app | ||
environment: | ||
DB_HOST: database | ||
DB_USER: ${DB_USER} | ||
DB_PASSWORD: ${DB_PASSWORD} | ||
DB_NAME: ${DB_NAME} | ||
DB_PORT: ${DB_PORT} | ||
PORT: 3000 | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- database | ||
volumes: | ||
- ./game/backend:/usr/src/app | ||
networks: | ||
- backend | ||
command: bash -c "npm install && node src/app.js" | ||
|
||
pgadmin: | ||
image: dpage/pgadmin4 | ||
container_name: pgadmin | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: password | ||
PGADMIN_DEFAULT_PASSWORD: admin | ||
ports: | ||
- "8081:80" | ||
- "8080:80" | ||
volumes: | ||
- pgadmin-data:/var/lib/pgadmin | ||
depends_on: | ||
- postgres | ||
- database | ||
networks: | ||
- backend | ||
|
||
volumes: | ||
postgres_data: | ||
postgres-data: | ||
pgadmin-data: | ||
|
||
networks: | ||
backend: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.