-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (44 loc) · 950 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (44 loc) · 950 Bytes
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
version: '2.2'
services:
redis-server:
image: healthcheck/redis:alpine
networks:
private:
aliases:
- redis-server
application:
restart: on-failure
# depends_on:
# redis-server:
# condition: service_healthy
build: .
environment:
REDIS_HOST: redis-server
REDIS_PORT: 6379
HTTP_PORT: 3000
networks:
private:
aliases:
- application
proxy:
restart: on-failure
# depends_on:
# application:
# condition: service_healthy
image: nginx:1.15.5-alpine
volumes: ['./nginx/default.conf:/etc/nginx/conf.d/default.conf']
ports: ['80:80']
networks:
private:
aliases: []
public:
aliases: []
healthcheck:
test: wget --quiet --tries=1 --spider http://127.0.0.1:80/api/health || exit 1
timeout: 1s
retries: 99
networks:
private:
driver: bridge
public:
driver: bridge