-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 811 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 811 Bytes
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:
backend:
build:
context: ./backend
args:
- PHOENIX_VERSION=1.6.15
environment:
- DB_PREFIX=${DB_PREFIX}
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DATABASE_URL=ecto://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:5432/${DB_PREFIX}
command:
- "./run.sh"
ports:
- "4000:4000"
- "443:443"
volumes:
- ./backend:/app
depends_on:
- db
frontend:
build:
context: ./frontend
ports:
- "80:80"
db:
image: postgres:14.2-alpine
container_name: "tenantee_postgres"
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_PREFIX}
ports:
- "5432:5432"