2022-12-13 12:46:08 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
oapen-engine :
|
|
|
|
build: ./oapen-engine/
|
2023-04-16 23:55:57 +00:00
|
|
|
restart: always
|
2023-04-07 13:37:43 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-02-24 00:23:23 +00:00
|
|
|
environment:
|
2023-03-06 19:44:45 +00:00
|
|
|
- COLLECTION_IMPORT_LIMIT=0 # Set to 0 for full harvest
|
|
|
|
- REFRESH_PERIOD=86400 # daily
|
|
|
|
- HARVEST_PERIOD=604800 # weekly
|
2022-12-13 12:46:08 +00:00
|
|
|
api:
|
2023-04-22 22:35:54 +00:00
|
|
|
container_name: api
|
2022-12-13 12:46:08 +00:00
|
|
|
build: ./api/
|
2023-04-16 23:55:57 +00:00
|
|
|
restart: always
|
2023-04-07 13:37:43 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2022-12-13 12:46:08 +00:00
|
|
|
ports:
|
2023-04-24 02:56:48 +00:00
|
|
|
- 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
|
2023-04-24 02:56:48 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-04-22 20:07:31 +00:00
|
|
|
volumes:
|
2023-04-24 04:22:09 +00:00
|
|
|
- ./nginx:/etc/nginx/templates
|
2023-04-24 02:56:48 +00:00
|
|
|
- /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
|
2023-04-24 02:56:48 +00:00
|
|
|
depends_on:
|
|
|
|
- nginx
|
2023-04-22 20:07:31 +00:00
|
|
|
volumes:
|
2023-04-24 02:56:48 +00:00
|
|
|
- /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
|
2022-12-13 12:46:08 +00:00
|
|
|
web:
|
|
|
|
build: ./web/
|
2023-04-16 23:55:57 +00:00
|
|
|
restart: always
|
2022-12-13 12:46:08 +00:00
|
|
|
ports:
|
2023-04-16 23:55:57 +00:00
|
|
|
- "0.0.0.0:${WEB_DEMO_PORT}:3000"
|
2023-03-03 13:58:02 +00:00
|
|
|
embed-script-test:
|
|
|
|
build: ./embed-script/
|
2023-04-16 23:55:57 +00:00
|
|
|
restart: always
|
2023-03-03 13:58:02 +00:00
|
|
|
ports:
|
2023-04-22 22:40:59 +00:00
|
|
|
- "0.0.0.0:${EMBED_SCRIPT_PORT}:3002"
|
|
|
|
networks:
|
|
|
|
nginx-passthrough:
|
2023-04-24 02:56:48 +00:00
|
|
|
driver: bridge
|