-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dragonfly.yaml
55 lines (54 loc) · 1.28 KB
/
docker-compose-dragonfly.yaml
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
version: "3"
services:
urless-frontend:
container_name: urless-frontend
# image: alivx/urless:frontend-latest
build:
context: ./
dockerfile: Dockerfile.frontend
environment:
DYNACONF_backendURL: "http://urless-backend:8080"
DYNACONF_finalURL: "http://localhost:8080"
DYNACONF_exposePort: 8081
DYNACONF_exposeHost: "0.0.0.0"
ports:
- "8081:8081"
urless-backend:
container_name: urless-backend
# image: alivx/urless:api-latest
build:
context: ./
dockerfile: Dockerfile.api
environment:
DYNACONF_exposePort: 8080
DYNACONF_exposeHost: "0.0.0.0"
DYNACONF_redisHost: dragonflydb
DYNACONF_redisPort: 6379
links:
- dragonflydb
depends_on:
- dragonflydb
ports:
- "8080:8080"
dragonflydb:
container_name: dragonflydb
image: "docker.dragonflydb.io/dragonflydb/dragonfly"
ports:
- "6379:6379"
ulimits:
memlock: -1
nginx:
# image: nginx:latest
build:
context: ./
dockerfile: Dockerfile.nginx
ports:
- 80:80
environment:
NGINX_BACKEND_HOST: wordpress
NGINX_BACKEND_PORT: 8081
NGINX_VHOST_PRESET: urless-frontend
links:
- urless-frontend
depends_on:
- urless-frontend