generated from yandex-praktikum/go-musthave-group-diploma-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 845 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
version: '3.9'
services:
db:
image: postgres:latest
container_name: "database"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "35432:5432"
accrual:
build:
dockerfile: cmd/accrual/Dockerfile
context: .
container_name: "accrual"
environment:
DATABASE_URI: postgres://postgres:postgres@db:5432/postgres
RUN_ADDRESS: :8081
ports:
- "8081:8081"
depends_on:
- db
gophermart:
build:
dockerfile: cmd/gophermart/Dockerfile
context: .
container_name: "gophermart"
environment:
DATABASE_URI: postgres://postgres:postgres@db:5432/postgres
RUN_ADDRESS: :8080
ACCRUAL_SYSTEM_ADDRESS: http://accrual:8081
ports:
- "8080:8080"
depends_on:
- db