forked from jalantechnologies/flask-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
91 lines (86 loc) · 2 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
91 lines (86 loc) · 2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
app:
platform: 'linux/amd64'
image: 'frm-boilerplate'
build:
context: .
dockerfile: Dockerfile
args:
APP_ENV: 'docker-dev'
environment:
APP_ENV: 'docker-dev'
command: /bin/sh -c "npm install && npm run serve -- --no-temporal"
depends_on:
app-db:
condition: service_started
temporal:
condition: service_healthy
ports:
- '3000:3000'
- '8080:8080'
volumes:
- './:/app:delegated'
- '/app/node_modules/'
working_dir: /app
app-db:
image: mongo:5.0
command:
- '--logpath'
- '/var/log/mongod.log'
ports:
- '27017:27017'
volumes:
- './data/mongodb:/data/db'
- './logs/mongodb:/var/log'
temporal:
image: temporalio/auto-setup:1.27.0
depends_on:
- temporal-db
environment:
DB: 'postgres12'
DB_PORT: '5432'
POSTGRES_USER: 'temporal'
POSTGRES_PWD: 'temporal'
POSTGRES_SEEDS: 'temporal-db'
DYNAMIC_CONFIG_FILE_PATH: 'config/temporal-sql.yaml'
healthcheck:
test:
[
"CMD",
"tctl",
"--address",
"temporal:7233",
"workflow",
"list"
]
interval: 1s
timeout: 5s
retries: 30
ports:
- '7233:7233'
volumes:
- './temporal-sql.yaml:/etc/temporal/config/temporal-sql.yaml'
temporal-db:
image: postgres:16
environment:
POSTGRES_PASSWORD: 'temporal'
POSTGRES_USER: 'temporal'
command: >
postgres -c logging_collector=on
-c log_directory=/var/log
-c log_filename=postgresql.log
ports:
- '5432:5432'
volumes:
- './data/postgresql:/var/lib/postgresql/data'
- './logs/postgresql:/var/log/'
temporal-ui:
image: temporalio/ui:2.34.0
depends_on:
- temporal
environment:
TEMPORAL_ADDRESS: 'temporal:7233'
TEMPORAL_CORS_ORIGINS: 'http://localhost:3000'
ports:
- '8233:8080'