This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 1.61 KB
/
docker-compose.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.9'
services:
db:
container_name: db
hostname: db
image: postgres:16.1
ports:
- '5432:5432'
expose:
- 5432
healthcheck:
test: ['CMD', 'pg_isready -U ${DB_USER:-pguser} -d ${DB_NAME:-rms}']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USERNAME:-pguser}
POSTGRES_PASSWORD: ${DB_PASSWORD:-pgpwd}
POSTGRES_DB: ${DB_NAME:-rms}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
restart: always
networks:
- default
api:
container_name: api
hostname: api
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
expose:
- 3000
env_file:
- .env
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: ${DB_USERNAME:-pguser}
DB_PASSWORD: ${DB_PASSWORD:-pgpwd}
DB_NAME: ${DB_NAME:-rms}
DB_SSL: ${DB_SSL:-false}
COGNITO_USER_POOL_ID: ${COGNITO_USER_POOL_ID:-}
COGNITO_CLIENT_ID: ${COGNITO_CLIENT_ID:-}
ENABLE_MERCADOPAGO: ${ENABLE_MERCADOPAGO:-false}
ACCESS_TOKEN_MERCADOPAGO: ${ACCESS_TOKEN_MERCADOPAGO:-}
USER_ID_MERCADOPAGO: ${USER_ID_MERCADOPAGO:-}
EXTERNAL_POS_ID_MERCADOPAGO: ${EXTERNAL_POS_ID_MERCADOPAGO:-}
WEBHOOK_URL_MERCADOPAGO: ${WEBHOOK_URL_MERCADOPAGO:-}
IDEMPOTENCY_KEY_MERCADOPAGO: ${IDEMPOTENCY_KEY_MERCADOPAGO:-a005986e-f97c-4274-91cf-b32d2672824f}
restart: always
networks:
- default
depends_on:
- db
networks:
default:
driver: bridge
volumes:
postgres: