-
Notifications
You must be signed in to change notification settings - Fork 145
/
docker-compose.yaml
61 lines (59 loc) · 1.46 KB
/
docker-compose.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
#
# To run this container on a public URL
# you should pass the ZALLY_API_URL environment
# variable to docker-compose, referencing the external
# URL of the Zally API.
#
# $ ZALLY_API_URL=http://157.230.116.206:8000 docker-compose up
#
version: '2.1'
services:
web-ui:
build: ./web-ui
environment:
- ZALLY_API_URL=${ZALLY_API_URL:-http://localhost:8000}
depends_on:
- server
links:
- server:server.local
ports:
- "8080:3000"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000" ]
interval: 5s
timeout: 2s
retries: 10
server:
build: ./server
depends_on:
- postgres
links:
- postgres:postgres.local
ports:
- "8000:8000"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:7979/health" ]
interval: 5s
timeout: 2s
retries: 10
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres.local:5432/zally
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- MANAGEMENT_PORT=7979
- TOKEN_INFO_URI=https://url.not.set
postgres:
image: postgres:13
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=zally
volumes:
- "postgres-data:/var/lib/postgresql/data"
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data: