-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (36 loc) · 1018 Bytes
/
compose.yml
File metadata and controls
37 lines (36 loc) · 1018 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
services:
app:
build:
context: .
target: builder
args:
MIX_ENV: dev
env_file: demo/.env
environment:
- STARTUP_COMMAND_1=mix do deps.get + ecto.create + ecto.migrate
- STARTUP_COMMAND_2=bun install --frozen-lockfile
- STARTUP_COMMAND_3=bun x playwright install chromium --with-deps
- STARTUP_COMMAND_4=mix assets.setup
- STARTUP_COMMAND_5=cd .. && mix deps.get && bun install --frozen-lockfile && cd demo
volumes:
- .:/opt/app
- playwright-cache:/root/.cache/ms-playwright
ports:
- 4000:4000
- 4007:4007
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16.14@sha256:56e4e0c3ecceda251b068a6c72bc4dfb8b3aaa894830a1ab8dad0c530e47756b
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 54321:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
playwright-cache: