-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
67 lines (58 loc) · 1.54 KB
/
docker-compose.dev.yml
File metadata and controls
67 lines (58 loc) · 1.54 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
version: "3.7"
x-zimagi: &zimagi
image: ${ZIMAGI_DEFAULT_RUNTIME_IMAGE}
restart: always
environment:
ZIMAGI_POSTGRES_HOST: data
ZIMAGI_POSTGRES_PORT: 5432
ZIMAGI_REDIS_HOST: objects
ZIMAGI_REDIS_PORT: 6379
env_file: .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "${ZIMAGI_LIB_DIRECTORY}:/usr/local/lib/zimagi"
depends_on:
- data
- objects
services:
command-api:
<<: *zimagi
entrypoint: zimagi-command
ports:
- "${ZIMAGI_COMMAND_PORT}:${ZIMAGI_COMMAND_PORT}"
data-api:
<<: *zimagi
entrypoint: zimagi-data
ports:
- "${ZIMAGI_DATA_PORT}:${ZIMAGI_DATA_PORT}"
scheduler:
<<: *zimagi
entrypoint: zimagi-scheduler
worker:
<<: *zimagi
entrypoint: zimagi-worker
data:
image: postgres:12
command: postgres -c 'max_connections=100'
restart: always
environment:
POSTGRES_USER: ${ZIMAGI_POSTGRES_USER}
POSTGRES_PASSWORD: ${ZIMAGI_POSTGRES_PASSWORD}
POSTGRES_DB: ${ZIMAGI_POSTGRES_DB}
volumes:
- app-data:/var/lib/postgresql
ports:
- "5432:5432"
objects:
image: redis:5
restart: always
command: redis-server --requirepass ${ZIMAGI_REDIS_PASSWORD}
volumes:
- app-objects:/data
ports:
- "6379:6379"
volumes:
app-data:
external: false
app-objects:
external: false