bonfire-app/docker-compose.yml

120 lines
2.6 KiB
YAML
Raw Normal View History

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"
2023-10-10 08:16:43 +00:00
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "20"
2020-09-10 07:06:11 +00:00
build:
context: .
dockerfile: "Dockerfile.dev"
2024-01-27 17:53:10 +00:00
args:
- ELIXIR_DOCKER_IMAGE=${ELIXIR_DOCKER_IMAGE}
2020-09-10 07:06:11 +00:00
ports:
- "4000:${SERVER_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}"
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
# - GRAPH_DB_URL=bolt://graph:7687 # commented temporarily
2020-09-10 07:06:11 +00:00
depends_on:
- db
2021-05-13 20:05:27 +00:00
# - condition: service_healthy
2024-01-28 10:38:51 +00:00
# - search
# - graph
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:
profiles:
- search
2020-12-31 13:17:10 +00:00
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
2023-03-24 02:47:29 +00:00
proxy:
profiles:
- proxy
2023-03-24 03:01:07 +00:00
links:
- web
2023-03-24 02:47:29 +00:00
image: "caddy:alpine"
restart: always
ports:
- "80:80"
- "443:443"
2023-04-03 22:55:33 +00:00
- "443:443/udp"
2023-03-24 02:47:29 +00:00
env_file:
2023-03-24 02:55:26 +00:00
- config/dev/.env
2023-03-24 02:47:29 +00:00
volumes:
2023-04-03 22:55:33 +00:00
- caddy_data:/data
- caddy_config:/config
2023-03-24 02:47:29 +00:00
- type: bind
2023-04-03 01:18:16 +00:00
source: ${PROXY_CADDYFILE_PATH}
2023-03-24 02:47:29 +00:00
target: /etc/caddy/Caddyfile
read_only: true
- type: bind
source: ./data/uploads
target: /frontend/uploads
graph:
profiles:
- graph
image: memgraph/memgraph-platform
entrypoint: ["/usr/bin/supervisord"]
ports:
- "7687:7687"
- "3000:3000"
- "7444:7444"
volumes:
- mg_lib:/var/lib/memgraph
- mg_log:/var/log/memgraph
- mg_etc:/etc/memgraph
2023-04-03 22:55:33 +00:00
volumes:
caddy_data:
2023-04-03 22:57:28 +00:00
# external: true
caddy_config:
mg_lib:
mg_log:
mg_etc:
networks:
default:
external: ${DOCKER_EXT_NETWORK_BOOL}
name: ${DOCKER_EXT_NETWORK}