-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
110 lines (104 loc) · 3 KB
/
docker-compose.dev.yml
File metadata and controls
110 lines (104 loc) · 3 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
web:
build:
dockerfile: Dockerfile.dev
ports:
- "4000:4000"
depends_on:
pg:
condition: service_healthy
restart: true
minio:
condition: service_healthy
restart: true
#cloud-hypervisor:
# condition: service_healthy
# restart: true
environment:
- MIX_ENV=dev
- PHX_HOST=localhost
- SECRET_KEY_BASE=DElG+3akCkNp+QmIx3kmvmjXMUni6zLZU5n9B9sF++u+4J+EfiOsxYGpzYqkyrh+
- DATABASE_URL=ecto://postgres:postgres@pg/justrunit_dev
- AWS_ENDPOINT_URL_S3=http://minio:9000
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
volumes:
- .:/app
- /app/deps
- /app/_build
pg:
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=justrunit_dev
volumes:
- pgdata:/tmp/pg_data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d justrunit_dev"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/tmp/minio_data
environment:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD-SHELL", "curl -I http://localhost:9000/minio/health/live"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
setup-buckets:
image: minio/mc
depends_on:
minio:
condition: service_healthy
restart: true
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add jri_minio http://minio:9000 minioadmin minioadmin &&
/usr/bin/mc mb jri_minio/justrunit &&
/usr/bin/mc policy download jri_minio/justrunit &&
exit 0
"
cloud-hypervisor:
build:
context: .
dockerfile: Dockerfile.cloud-hypervisor
#devices:
#- /dev/kvm:/dev/kvm
volumes:
- ./cloudinit_config:/cloudinit_config
#healthcheck:
# test: ["CMD-SHELL", "cloud-hypervisor --kernel ./linux-cloud-hypervisor/arch/x86/boot/compressed/vmlinux.bin --console off --serial tty --disk path=focal-server-cloudimg-amd64.raw --cmdline \"console=ttyS0 root=/dev/vda1 rw\" --cpus boot=4 --memory size=1024M --net \"tap=,mac=,ip=,mask=\""]
# interval: 10s
# retries: 5
# start_period: 30s
# timeout: 10s
cloud-hypervisor-resources-limits-updater:
image: docker:cli
volumes:
- ./cloud_hypervisor_resources_limits_updater.sh:/cloud_hypervisor_resources_limits_updater.sh
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: ["bin/sh", "/cloud_hypervisor_resources_limits_updater.sh"]
#depends_on:
# cloud-hypervisor:
# condition: service_healthy
# restart: true
environment:
- CH_UPDATE_INTERVAL=60
volumes:
pgdata:
miniodata:
cloudinit_config: