-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
56 lines (56 loc) · 1.3 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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:
container_name: api
build: ./api/
restart: always
env_file:
- .env
ports:
- 0.0.0.0:${API_PORT}:${API_PORT}
networks:
- nginx-passthrough
nginx:
image: nginx:mainline-alpine
restart: always
env_file:
- .env
volumes:
- ./nginx:/etc/nginx/templates
- /etc/certbot/conf:/etc/letsencrypt
- /etc/certbot/www:/var/www/certbot
ports:
- 80:80
- 443:443
networks:
- nginx-passthrough
certbot:
image: certbot/certbot
depends_on:
- nginx
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:
- "0.0.0.0:${EMBED_SCRIPT_PORT}:3002"
networks:
nginx-passthrough:
driver: bridge