-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
49 lines (47 loc) · 1.05 KB
/
docker-compose.prod.yml
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
41
42
43
44
45
46
47
48
49
version: '3.8'
services:
postgres:
image: postgres:14.5
restart: always
environment:
POSTGRES_DB: familiada
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
test-postgres:
image: postgres:14.5
restart: always
environment:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- '5433:5432'
api:
build:
context: .
dockerfile: ./apps/api/Dockerfile
restart: always
environment:
CORS_ORIGINS: http://localhost:8080,http://localhost:3000
DATABASE_URL: postgres://postgres:postgres@postgres:5432/familiada
DISABLE_REQUEST_LOGGING: false
HOST: '0.0.0.0'
depends_on:
- postgres
ports:
- '0.0.0.0:3000:3000'
web:
build:
context: .
dockerfile: ./apps/web/Dockerfile
restart: always
environment:
NEXT_PUBLIC_API_URL: http://localhost:3000
ports:
- '0.0.0.0:8080:8080'
volumes:
postgres: