2020-09-10 07:06:11 +00:00
|
|
|
# A Dockerfile for development/testing
|
|
|
|
|
|
|
|
version: "3.5"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2021-04-20 13:07:54 +00:00
|
|
|
container_name: "bonfire_web"
|
2020-09-10 07:06:11 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: "Dockerfile.dev"
|
|
|
|
ports:
|
2021-04-20 13:07:54 +00:00
|
|
|
- "4000:4000"
|
2021-01-20 08:57:27 +00:00
|
|
|
env_file:
|
2022-05-23 02:20:39 +00:00
|
|
|
- config/dev/.env
|
2021-05-13 17:42:52 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=db
|
2021-06-06 11:41:45 +00:00
|
|
|
- SEARCH_MEILI_INSTANCE=http://search:7700
|
2020-09-10 07:06:11 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2021-05-13 20:05:27 +00:00
|
|
|
# - condition: service_healthy
|
2021-04-22 20:11:26 +00:00
|
|
|
- search
|
2020-09-10 07:06:11 +00:00
|
|
|
volumes:
|
2021-05-13 17:42:52 +00:00
|
|
|
# - /etc/passwd:/etc/passwd:ro
|
2020-09-10 07:06:11 +00:00
|
|
|
- type: bind
|
|
|
|
source: .
|
|
|
|
target: /opt/app
|
2021-05-13 17:42:52 +00:00
|
|
|
# do not mount the following:
|
2021-09-19 23:01:17 +00:00
|
|
|
# - /opt/app/_build
|
|
|
|
# - /opt/app/assets/node_modules
|
2021-05-13 17:42:52 +00:00
|
|
|
- /opt/app/data/postgres
|
|
|
|
- /opt/app/data/search
|
2020-09-10 07:06:11 +00:00
|
|
|
stdin_open: true # like docker run -i
|
|
|
|
tty: true # like docker run -t
|
2022-01-09 10:19:16 +00:00
|
|
|
user: $UID:$GID
|
2020-09-10 07:06:11 +00:00
|
|
|
db:
|
2021-12-12 18:44:34 +00:00
|
|
|
image: ${DB_DOCKER_IMAGE}
|
2021-06-25 11:05:31 +00:00
|
|
|
# volumes:
|
|
|
|
# - ./data/postgres/dev:/var/lib/postgresql/data:z
|
|
|
|
# - /etc/passwd:/etc/passwd:ro
|
2021-05-13 17:42:52 +00:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2020-12-31 13:17:10 +00:00
|
|
|
env_file:
|
2022-05-23 02:20:39 +00:00
|
|
|
- config/dev/.env
|
2021-06-25 11:05:31 +00:00
|
|
|
# user: $UID:$GID
|
2021-05-13 20:05:27 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2020-12-31 13:17:10 +00:00
|
|
|
search:
|
|
|
|
image: getmeili/meilisearch:latest
|
|
|
|
ports:
|
2021-04-20 13:07:54 +00:00
|
|
|
- "7700:7700"
|
2021-06-25 11:05:31 +00:00
|
|
|
# volumes:
|
|
|
|
# - "./data/search/dev:/data.ms"
|
2021-04-22 20:11:26 +00:00
|
|
|
# - /etc/passwd:/etc/passwd:ro
|
2020-12-31 13:17:10 +00:00
|
|
|
env_file:
|
2022-05-23 02:20:39 +00:00
|
|
|
- config/dev/.env
|
2021-04-22 20:11:26 +00:00
|
|
|
# user: $UID:$GID
|