-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
33 lines (32 loc) · 797 Bytes
/
docker-compose.yaml
File metadata and controls
33 lines (32 loc) · 797 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
version: '3.7'
services:
db:
container_name: nlw_database
image: postgres:16.2-alpine3.19
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 5432:5432
networks:
- appnetwork
api:
container_name: nlw_backend
build:
context: .
ports:
- "3333:3333"
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@nlw-unite-do-user-16299903-0.c.db.ondigitalocean.com:25060/${POSTGRES_DB}?sslmode=require
- API_BASE_URL=${API_BASE_URL}
depends_on:
- db
# volumes:
# - 'db:/var/lib/postgresql/data'
networks:
- appnetwork
networks:
appnetwork:
driver: bridge