-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (47 loc) · 1008 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
46
47
48
49
50
51
version: '3.9'
volumes:
pg_data:
services:
sqs:
container_name: sqs
image: softwaremill/elasticmq-native
ports:
- 9324:9324
- 9325:9325
api_db:
container_name: api_db
image: postgis/postgis:13-3.2-alpine
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
restart: always
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_period: 60s
interval: 5s
timeout: 3s
retries: 10
api_service:
container_name: api_service
build:
context: .
dockerfile: Dockerfile
image: wcs/mermaid-api:latest
volumes:
- $PWD/src:/var/projects/webapp
ports:
- 8080:8080
- 8081:8081
command: tail -f /dev/null
env_file:
- .env
- .secrets.env
depends_on:
api_db:
condition: service_healthy
sqs:
condition: service_started