-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
39 lines (36 loc) · 1.07 KB
/
docker-compose.yml
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
version: "3.7"
services:
app:
container_name: "tenantee_app"
build:
context: ./
network: host
dockerfile: Dockerfile
args:
- DATABASE_URL=ecto://tenantee:tenantee@localhost:5432/tenantee_dev
- SECRET_KEY_BASE=R76c9a0MiHVZszVrPmgYZ1BVxxElZXMkOtaNjjKdPhPfXOscuPjSBCjoTYCKdi9Q
- VALKEY_URL=valkey://:tenantee_valkey@valkey:6379
environment:
- DATABASE_URL=ecto://tenantee:tenantee@db/tenantee_dev
- SECRET_KEY_BASE=R76c9a0MiHVZszVrPmgYZ1BVxxElZXMkOtaNjjKdPhPfXOscuPjSBCjoTYCKdi9Q
- VALKEY_URL=valkey://:tenantee_valkey@valkey:6379
- PHX_HOST=localhost
ports:
- "443:443"
depends_on:
- db
valkey:
image: valkey/valkey:7.2
container_name: "tenantee_valkey"
command: /bin/sh -c "valkey-server --requirepass tenantee_valkey"
ports:
- "6379:6379"
db:
image: postgres:14.2-alpine
container_name: "tenantee_postgres"
environment:
- POSTGRES_USER=tenantee
- POSTGRES_PASSWORD=tenantee
- POSTGRES_DB=tenantee_dev
ports:
- "5432:5432"