forked from ever-co/ever-traduora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.postgres.yaml
47 lines (43 loc) · 966 Bytes
/
docker-compose.postgres.yaml
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
version: '3.7'
services:
traduora:
image: everco/ever-traduora:latest
container_name: traduora
build:
context: .
dockerfile: Dockerfile
args:
NODE_ENV: ${NODE_ENV:-development}
ports:
- "8080:8080"
environment:
TR_DB_TYPE: postgres
TR_DB_USER: tr
TR_DB_PASSWORD: change_me
TR_DB_DATABASE: tr_dev
TR_DB_HOST: postgresdb
TR_DB_PORT: 5432
NODE_ENV: ${NODE_ENV:-development}
entrypoint: './docker-entrypoint.compose.sh'
restart: on-failure
depends_on:
- postgresdb
links:
- postgresdb:${TR_DB_HOST:-postgresdb}
networks:
- overlay
postgresdb:
image: postgres:15-alpine
container_name: postgresdb
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_DB: tr_dev
POSTGRES_USER: tr
POSTGRES_PASSWORD: change_me
networks:
- overlay
networks:
overlay:
driver: bridge