-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (40 loc) · 863 Bytes
/
docker-compose.yml
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
version: "3.5"
services:
redis:
image: redis
api:
container_name: sales_backend
build:
context: backend
dockerfile: Dockerfile
ports:
- "3600:3000"
environment:
REDIS_HOST: redis
DATABASE_URL: postgresql:https://postgres:postgres@postgres:5432/sales?schema=public # "file:./dev.db"
depends_on:
- redis
web:
container_name: sales_frontend
build:
context: frontend
dockerfile: Dockerfile
environment:
API_URL: http:https://api:3000/
ports:
- "3800:3000"
depends_on:
- api
postgres:
image: postgres:12
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: sales
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres:
name: nest-db