-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tercela
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- "3333:3333"
depends_on:
- postgres
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/tercela
JWT_SECRET: change-me
API_PORT: "3333"
# env_file: .env # alternativa: usar .env do host
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- "3000:3000"
depends_on:
- api
environment:
NUXT_PUBLIC_API_BASE: http://api:3333
NUXT_PUBLIC_WS_URL: ws://api:3333/ws
volumes:
postgres_data: