2022-12-15 09:59:45 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
api:
|
|
|
|
container_name: ${SERVICE_CONTAINER}
|
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
|
|
|
target: development
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
command: npm run start:dev
|
|
|
|
ports:
|
2022-12-16 15:46:14 +00:00
|
|
|
- "${SERVICE_PORT:-5002}:${SERVICE_PORT:-5002}"
|
2022-12-15 09:59:45 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
2022-12-16 15:46:14 +00:00
|
|
|
v3-network:
|
|
|
|
aliases:
|
|
|
|
- v3-auth-api
|
2022-12-15 09:59:45 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
container_name: ${POSTGRES_CONTAINER}
|
|
|
|
image: ${POSTGRES_IMAGE}
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- "${POSTGRES_PORT:-5402}:5432"
|
|
|
|
volumes:
|
|
|
|
- ./postgresql/.db_data:/var/lib/postgresql/data:rw
|
|
|
|
networks:
|
2022-12-16 15:46:14 +00:00
|
|
|
v3-network:
|
|
|
|
aliases:
|
|
|
|
- v3-auth-db
|
2022-12-15 09:59:45 +00:00
|
|
|
|
|
|
|
pgadmin:
|
|
|
|
container_name: ${PGADMIN_CONTAINER}
|
|
|
|
image: ${PGADMIN_IMAGE}
|
|
|
|
environment:
|
|
|
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
|
|
|
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
|
|
|
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
|
|
ports:
|
|
|
|
- "${PGADMIN_PORT:-8402}:80"
|
|
|
|
volumes:
|
|
|
|
- ./postgresql/.pgadmin_data:/var/lib/pgadmin:rw
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
2022-12-16 15:46:14 +00:00
|
|
|
v3-network:
|
|
|
|
aliases:
|
|
|
|
- v3-auth-pgadmin
|
2022-12-15 09:59:45 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
networks:
|
2022-12-16 15:46:14 +00:00
|
|
|
v3-network:
|
|
|
|
name: v3-network
|
|
|
|
driver: bridge
|