-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (48 loc) · 1.06 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
# This is the local development version of docker-compose.
# Auth turns off
# SSL doesn't run
# ports exposed
version: '3'
services:
arango:
image: arangodb/arangodb:3.2.2
ports:
- "8529:8529"
environment:
- ARANGO_ROOT_PASSWORD=wlarango
volumes:
- ./arangodb/data:/var/lib/arangodb
api:
build:
context: ./api/
dockerfile: Dockerfile
volumes:
- ./api/api-server.js:/var/www/api/api-server.js
- ./api/src:/var/www/api/src
links:
- arango
depends_on:
- arango
environment:
- ARANGODB_HOST=arango
- ARANGODB_PORT=8529
- ARANGODB_USERNAME=root
- ARANGODB_PASSWORD=wlarango
- ARANGODB_DB=wl_db
ports:
- "3030:3030"
proxy: #serves the static code & proxies requests from /api to the api container
build:
context: ./react-app/
dockerfile: Dockerfile
volumes:
- ./react-app/dist:/var/www/app
- /etc/letsencrypt:/etc/letsencrypt
- ./react-app/nginx:/etc/nginx
links:
- api
depends_on:
- api
ports:
- "80:80"
- "443:443"