Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
72 lines (67 loc) · 1.55 KB
/
Copy pathcompose.yml
File metadata and controls
72 lines (67 loc) · 1.55 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
name: kritama-memovee
services:
memory-redis:
image: redis:8.2.1
command: [redis-server, --appendonly, "yes"]
ports:
- "127.0.0.1:6380:6379"
volumes:
- memovee-memory-redis-data:/data
healthcheck:
test: [CMD, redis-cli, PING]
interval: 2s
timeout: 3s
retries: 15
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 2s
timeout: 5s
retries: 10
start_period: 5s
memovee:
build:
context: .
target: development-local-ca
init: true
command:
- sh
- -lc
- mix deps.get && mix ecto.create && mix ecto.migrate && mix assets.setup && exec mix phx.server
env_file:
- ./tama/.memovee.integration.env
environment:
MIX_ENV: dev
DATABASE_HOST: postgres
DATABASE_PORT: 5432
PORT: 4000
depends_on:
postgres:
condition: service_healthy
volumes:
- .:/app
- memovee_deps:/app/deps
- memovee_build:/app/_build
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/"]
interval: 5s
timeout: 5s
retries: 12
start_period: 120s
volumes:
postgres_data:
memovee-memory-redis-data:
name: memovee-memory-redis-data
memovee_deps:
memovee_build:
include:
- ./tama/compose.yaml