-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathcompose.yml
More file actions
34 lines (34 loc) · 1004 Bytes
/
compose.yml
File metadata and controls
34 lines (34 loc) · 1004 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
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_1=mix do deps.get + ecto.create + ecto.migrate
- STARTUP_COMMAND_2=yarn install --pure-lockfile
- STARTUP_COMMAND_3=yarn playwright install chromium --with-deps
- STARTUP_COMMAND_4=mix assets.setup
- STARTUP_COMMAND_5=cd .. && mix deps.get && yarn install --pure-lockfile && cd demo
volumes:
- .:/opt/app
ports:
- 4000:4000
- 4007:4007
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16.13@sha256:78df81b1442dcc764c1104154da7162635e40cfffe67579c42a1c1b96dfc209c
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 54321:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5