-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
46 lines (43 loc) · 912 Bytes
/
docker-compose.dev.yaml
File metadata and controls
46 lines (43 loc) · 912 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
40
41
42
43
44
45
46
version: '3.8'
services:
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
phoenix:
build: ./phoenix_api
environment:
DATABASE_URL: ecto://postgres:postgres@db/phoenix_api
command:
- bash
- -c
- |
if [ ! -f .migrated ]; then
mix ecto.create;
mix ecto.migrate;
touch .migrated;
fi;
mix phx.server
depends_on:
db:
condition: service_healthy
ports:
- "4000:4000"
symfony:
build:
context: ./symfony_app
dockerfile: Dockerfile-dev
userns_mode: "keep-id"
volumes:
- ./symfony_app:/var/www/html:Z
ports:
- "8000:8080"