Skip to content

Commit

Permalink
fix: refactor docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeversiane committed Jun 13, 2024
1 parent 255c3d8 commit 732b2a4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ version: '3.0'
services:
db:
container_name: pg01
image: postgres:11-alpine
build:
context: .
dockerfile: build/db/Dockerfile
environment:
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
Expand Down Expand Up @@ -46,11 +49,12 @@ services:
container_name: go01
restart: unless-stopped
environment:
LOG_LEVEL: ${LOG_LEVEL}
GIN_MODE: ${GIN_MODE}
LOG_OUTPUT: ${LOG_OUTPUT}
AUTHORIZATION_URL: ${AUTHORIZATION_URL}
POSTGRES_URL: ${POSTGRES_URL}
- PORT=${PORT}
- GIN_MODE=${GIN_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- LOG_OUTPUT=${LOG_OUTPUT}
- AUTHORIZATION_URL=${AUTHORIZATION_URL}
- POSTGRES_URL=${POSTGRES_URL}
ports:
- "${PORT}:${PORT}"
depends_on:
Expand All @@ -61,8 +65,8 @@ services:
deploy:
resources:
limits:
cpus: '0.1'
memory: '0.1GB'
cpus: '0.2'
memory: '0.2GB'

volumes:
local_postgres_data: {}
Expand Down

0 comments on commit 732b2a4

Please sign in to comment.