-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.36 KB
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.9"
services:
# ArangoDB Database
arangodb:
restart: always
container_name: "lua-arangodb-dev"
image: "arangodb/arangodb:latest"
command: ["arangod", "--experimental-vector-index=true"]
ports:
- "8529:8529"
environment:
- ARANGO_ROOT_PASSWORD=openSesame
volumes:
- arangodb_data:/var/lib/arangodb3
healthcheck:
test: ["CMD", "arangosh", "--server.authentication", "false", "--javascript.execute-string", "db._version()"]
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
# OpenResty Test Server
openresty:
container_name: "lua-arangodb-openresty"
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- ./src:/app/src:ro
- ./nginx/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro
- ./nginx/lua:/app/nginx/lua:ro
- ./nginx/logs:/usr/local/openresty/nginx/logs
env_file:
- .env
environment:
- ARANGO_ENDPOINT=http://arangodb:8529
- ARANGO_USERNAME=root
- ARANGO_PASSWORD=openSesame
- ARANGO_DATABASE=_system
depends_on:
- arangodb
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 3
volumes:
arangodb_data:
networks:
default:
name: lua-arangodb-network