generated from yandex-praktikum/go-musthave-diploma-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (40 loc) · 841 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
version: '3'
networks:
integration:
driver: bridge
services:
gophermart:
image: service_test
environment:
RUN_ADDRESS: "localhost:8080"
DATABASE_URI: "postgresql://gophermartuser:gophermartpass@db:5432/gophermart"
ACCRUAL_SYSTEM_ADDRESS: "accrual:8282"
ports:
- "8080:8080"
depends_on:
- db
- accrual
entrypoint: "/http-service"
networks:
- integration
accrual:
build:
context: .
dockerfile: accrual.Dockerfile
ports:
- "8282:8282"
depends_on:
- db
networks:
- integration
db:
image: postgres:13.3
ports:
- "5432:5432"
environment:
POSTGRES_USER: gophermartuser
POSTGRES_PASSWORD: gophermartpass
POSTGRES_DB: gophermart
restart: on-failure
networks:
- integration