all: rename docker services
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
e9742fe574982242493f13aebf52e2c8123452bd Browse filesParents
80ca9e5Changed files
3
Additions
+5
Deletions
-5
api/.env.development
1 -
DATABASE_URL="postgres://user:password@orbit_db:5432/orbit_dev"
1 +
DATABASE_URL="postgres://user:password@db:5432/orbit_dev"
2 2
JWT_SECRET="sky-is-crying"
3 3
FRONTEND_URL=http://192.168.3.96:8000
api/.env.test
1 -
DATABASE_URL="postgres://user:password@orbit_db:5432/orbit_test"
1 +
DATABASE_URL="postgres://user:password@db:5432/orbit_test"
2 2
NODE_ENV=test
3 3
JWT_SECRET="test-secret-key"
4 4
FRONTEND_URL=http://localhost:8081
docker-compose.yml
1 1
services:
2 -
orbit_db:
2 +
db:
3 3
image: postgres:17-alpine
4 4
shm_size: 1g
5 5
user: postgres
6 6
restart: always
7 7
healthcheck:
16 16
POSTGRES_DB: orbit_dev
17 17
POSTGRES_PASSWORD: password
18 18
volumes:
19 19
- db_data:/var/lib/postgresql/data
20 20
21 -
orbit_api:
21 +
api:
22 22
build: ./api
23 23
volumes:
24 24
- ./api:/app
25 25
- /app/node_modules
26 26
ports:
27 27
- 3000:3000
28 28
env_file:
29 29
- api/.env.development
30 30
depends_on:
31 -
orbit_db:
31 +
db:
32 32
condition: service_healthy
33 33
restart: always
34 34
35 35
volumes:
36 36
db_data: