bonfire-app/docker-compose.release.yml

71 lines
1.5 KiB
YAML
Raw Normal View History

2021-04-08 18:19:52 +00:00
version: "3.5"
services:
2021-06-15 10:00:18 +00:00
web:
2022-05-23 02:42:37 +00:00
# You can build your own image from the source running: `just rel-build && just rel-tag-latest`
2022-10-17 10:01:30 +00:00
image: ${APP_DOCKER_IMAGE}
2021-04-08 18:19:52 +00:00
container_name: "bonfire_web"
restart: always
2023-10-10 08:16:43 +00:00
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
2021-04-08 18:19:52 +00:00
ports:
- "4000:4000" # you may want to comment this in production
env_file:
2022-05-23 02:20:39 +00:00
- config/prod/.env
2021-06-06 11:41:45 +00:00
environment:
- POSTGRES_HOST=db
- SEARCH_MEILI_INSTANCE=http://search:7700
2021-04-08 18:19:52 +00:00
depends_on:
- db
volumes:
- type: bind
source: ./data/uploads
2021-04-20 11:34:46 +00:00
target: /opt/app/data/uploads
2021-06-15 10:00:18 +00:00
proxy:
profiles:
- proxy
2021-04-08 18:19:52 +00:00
image: "caddy:alpine"
restart: always
ports:
- "80:80"
- "443:443"
2023-04-03 22:55:33 +00:00
- "443:443/udp"
2021-04-08 18:19:52 +00:00
env_file:
2022-05-23 02:20:39 +00:00
- config/prod/.env
2021-04-08 18:19:52 +00:00
volumes:
2023-04-03 22:55:33 +00:00
- caddy_data:/data
- caddy_config:/config
2021-04-08 18:19:52 +00:00
- type: bind
2023-04-03 01:18:16 +00:00
source: ${PROXY_CADDYFILE_PATH}
2021-04-08 18:19:52 +00:00
target: /etc/caddy/Caddyfile
read_only: true
- type: bind
source: ./data/uploads
target: /frontend/uploads
db:
2021-12-12 18:44:34 +00:00
image: ${DB_DOCKER_IMAGE}
2021-04-08 18:19:52 +00:00
restart: always
volumes:
- "./data/postgres/prod:/var/lib/postgresql/data"
# ports:
# - "5432:5432"
env_file:
2022-05-23 02:20:39 +00:00
- config/prod/.env
2021-04-08 18:19:52 +00:00
search:
profiles:
- search
2021-04-08 18:19:52 +00:00
image: getmeili/meilisearch:latest
# ports:
# - "7700:7700"
volumes:
- "./data/search/prod:/data.ms"
env_file:
2022-05-23 02:20:39 +00:00
- config/prod/.env
2023-04-03 22:55:33 +00:00
volumes:
caddy_data:
2023-04-03 22:57:10 +00:00
# external: true
2023-04-03 22:55:33 +00:00
caddy_config: