-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.08 KB
/
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
46
47
48
49
version: "3"
services:
postgre:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: taxcalculator
POSTGRES_USER: taxcalculator
POSTGRES_DB: tax-calculator
ports:
- "5432:5432"
volumes:
- "postgre:/var/lib/postgresql/data"
taxcalculator:
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
- postgre
environment:
- POSTGRE_HOST=postgre
- POSTGRE_PORT=5432
smoketest:
build:
context: ./
dockerfile: ./build/package/smoketest/Dockerfile
depends_on:
- taxcalculator
environment:
- SERVICE_HOST=taxcalculator
- SERVICE_PORT=9000
- SERVICE_ENDPOINT=/bill
nginx:
build:
context: ./
dockerfile: ./build/package/nginx/Dockerfile
volumes:
- "./configs/nginx:/etc/nginx/conf.d"
- "./website:/var/www/html/site"
- "./api:/var/www/html/api"
environment:
- SERVICE_HOST=taxcalculator
- SERVICE_PORT=9000
- SERVICE_ENDPOINT=/bill
ports:
- "8080:8080"
- "443:443"
volumes:
postgre: