-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 1.52 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
app:
build:
context: .
target: dev
entrypoint: ["/app/entrypoint.sh"]
init: true
environment:
DATABASE_HOST: database
DATABASE_HOST_RO: database
DATABASE_NAME: service
DATABASE_PASSWORD: service-password
DATABASE_PORT: 5432
DATABASE_USERNAME: root
REDIS_ENDPOINT: redis
REDIS_PORT: 6379
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
TEMPORAL_ADDRESS: temporal:7233
TC_HOST: host.docker.internal
env_file:
- .env.docker
volumes:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "3000:3000"
depends_on:
- database
- temporal
- redis
networks:
- app-network
temporal:
build: https://github.com/temporalio/temporalite.git#main
ports:
- "7233:7233"
- "8233:8233"
networks:
- app-network
database:
image: public.ecr.aws/docker/library/postgres:13.3
environment:
POSTGRES_DB: service
POSTGRES_PASSWORD: service-password
POSTGRES_USER: root
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d service"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
redis:
image: redis:7.0
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
networks:
app-network:
driver: bridge