oapen-suggestion-service/docker-compose.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

version: "3.8"
services:
oapen-engine :
build: ./oapen-engine/
restart: always
env_file:
- .env
environment:
- COLLECTION_IMPORT_LIMIT=0 # Set to 0 for full harvest
- REFRESH_PERIOD=86400 # daily
- HARVEST_PERIOD=604800 # weekly
api:
2023-04-22 22:35:54 +00:00
container_name: api
build: ./api/
restart: always
env_file:
- .env
ports:
- 0.0.0.0:${API_PORT}:${API_PORT}
2023-04-22 22:40:59 +00:00
networks:
- nginx-passthrough
2023-04-22 21:11:56 +00:00
nginx:
2023-04-24 04:22:09 +00:00
image: nginx:mainline-alpine
restart: always
env_file:
- .env
2023-04-22 20:07:31 +00:00
volumes:
2023-04-24 04:22:09 +00:00
- ./nginx:/etc/nginx/templates
- /etc/certbot/conf:/etc/letsencrypt
- /etc/certbot/www:/var/www/certbot
2023-04-24 04:22:09 +00:00
ports:
- 80:80
- 443:443
2023-04-22 22:40:59 +00:00
networks:
- nginx-passthrough
2023-04-22 20:07:31 +00:00
certbot:
2023-04-24 04:38:55 +00:00
image: certbot/certbot
depends_on:
- nginx
2023-04-22 20:07:31 +00:00
volumes:
- /etc/certbot/conf:/etc/letsencrypt
- /etc/certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email ${SSL_EMAIL} -d ${DOMAIN} --agree-tos
web:
build: ./web/
restart: always
ports:
- "0.0.0.0:${WEB_DEMO_PORT}:3000"
embed-script-test:
build: ./embed-script/
restart: always
ports:
2023-04-22 22:40:59 +00:00
- "0.0.0.0:${EMBED_SCRIPT_PORT}:3002"
networks:
nginx-passthrough:
driver: bridge