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:
|
2021-04-20 13:07:54 +00:00
|
|
|
- config/dev/public.env
|
|
|
|
- config/dev/secrets.env
|
2020-09-10 07:06:11 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
# - search
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: .
|
|
|
|
target: /opt/app
|
2021-01-20 08:57:27 +00:00
|
|
|
- /etc/passwd:/etc/passwd:ro
|
2020-09-10 07:06:11 +00:00
|
|
|
stdin_open: true # like docker run -i
|
|
|
|
tty: true # like docker run -t
|
2021-01-07 13:02:25 +00:00
|
|
|
user: $UID:$GID
|
2020-09-10 07:06:11 +00:00
|
|
|
db:
|
|
|
|
image: postgis/postgis:12-3.0-alpine
|
|
|
|
volumes:
|
2021-01-20 08:57:27 +00:00
|
|
|
- ./data/postgres/dev:/var/lib/postgresql/data:z
|
|
|
|
- /etc/passwd:/etc/passwd:ro
|
2020-09-10 07:06:11 +00:00
|
|
|
# ports:
|
|
|
|
# - "5432:5432"
|
2020-12-31 13:17:10 +00:00
|
|
|
env_file:
|
2021-04-20 13:07:54 +00:00
|
|
|
- config/dev/public.env
|
|
|
|
- config/dev/secrets.env
|
2021-01-07 13:02:25 +00:00
|
|
|
user: $UID:$GID
|
2020-12-31 13:17:10 +00:00
|
|
|
search:
|
|
|
|
image: getmeili/meilisearch:latest
|
|
|
|
ports:
|
2021-04-20 13:07:54 +00:00
|
|
|
- "7700:7700"
|
2020-12-31 13:17:10 +00:00
|
|
|
volumes:
|
|
|
|
- "./data/search/dev:/data.ms"
|
2021-01-20 08:57:27 +00:00
|
|
|
- /etc/passwd:/etc/passwd:ro
|
2020-12-31 13:17:10 +00:00
|
|
|
env_file:
|
2021-04-20 13:07:54 +00:00
|
|
|
- config/dev/public.env
|
|
|
|
- config/dev/secrets.env
|
2021-01-07 13:02:25 +00:00
|
|
|
user: $UID:$GID
|