-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 929 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 929 Bytes
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
version: '3.8'
services:
api-passin:
build:
context: .
dockerfile: ./prod.Dockerfile
container_name: api-pass-in
ports:
- 3003:3333
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public
- API_BASE_URL=http://localhost:3333
- NODE_ENV=development
- PORT=3333
- API_HOST:"0.0.0.0"
depends_on:
- postgres
networks:
- passin
postgres:
image: bitnami/postgresql:latest
container_name: db-pass-in
ports:
- '5432:5432'
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- events_pg_data:/bitnami/postgresql
networks:
- passin
volumes:
events_pg_data:
networks:
passin:
driver: bridge