2023-12-11 08:40:54 +00:00
|
|
|
version: "3.2"
|
|
|
|
|
|
|
|
services:
|
|
|
|
osmosis-front-end:
|
|
|
|
image: cerc/osmosis-front-end:local
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
- NEXT_PUBLIC_WEB_API_BASE_URL=${CERC_WEB_API_BASE_URL}
|
|
|
|
working_dir: /app/packages/web
|
|
|
|
command: ["./build-app.sh"]
|
|
|
|
volumes:
|
|
|
|
- ../config/osmosis/build-app.sh:/app/packages/web/build-app.sh
|
2023-12-18 12:19:45 +00:00
|
|
|
- ../config/osmosis/.env.production:/app/packages/web/.env.production
|
2023-12-11 08:40:54 +00:00
|
|
|
- app_builds:/app-builds
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:1.23-alpine
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
osmosis-front-end:
|
|
|
|
condition: service_completed_successfully
|
|
|
|
volumes:
|
|
|
|
- ../config/osmosis/nginx:/etc/nginx/conf.d
|
|
|
|
- app_builds:/usr/share/nginx
|
|
|
|
ports:
|
|
|
|
- "80"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "80"]
|
|
|
|
interval: 20s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 15
|
|
|
|
start_period: 5s
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
app_builds:
|