-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.08 KB
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"
services:
postgres:
image: postgres:15
container_name: fip-postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-fip}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fip}
POSTGRES_DB: ${POSTGRES_DB:-fip}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
temporal:
image: temporalio/auto-setup:1.23
container_name: fip-temporal
depends_on:
- postgres
environment:
DB: postgresql
DB_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER:-fip}
POSTGRES_PWD: ${POSTGRES_PASSWORD:-fip}
POSTGRES_SEEDS: postgres
ports:
- "7233:7233"
- "8233:8233"
app:
build:
context: .
dockerfile: Dockerfile.dev
container_name: fip-app
working_dir: /go/src/app
volumes:
- ./:/go/src/app
env_file:
- .env.dev
environment:
# helpful for the app to talk to temporal running as a service
- TEMPORAL_ADDRESS=temporal:7233
depends_on:
- postgres
- temporal
ports:
- "8080:8080"
volumes:
postgres_data: