-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 991 Bytes
/
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
version: '3'
networks:
metabuild:
services:
redis:
image: redis:alpine
hostname: redis
volumes:
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
command: redis-server /usr/local/etc/redis/redis.conf
networks:
metabuild:
aliases:
- redis.metabuild.org
api:
image: gcr.io/spring-sandbox-219017/sandbox-api
hostname: api
ports:
- 8080:8080
networks:
metabuild:
aliases:
- api.metabuild.org
frontend:
image: gcr.io/spring-sandbox-219017/sandbox-frontend
hostname: frontend
links:
- api
- redis
environment:
SANDBOX_API_HOST: api.metabuild.org
SANDBOX_API_PORT: 8080
SPRING_REDIS_HOST: redis.metabuild.org
SPRING_REDIS_PORT: 6379
ports:
- 8081:8081
networks:
metabuild:
aliases:
- frontend.metabuild.org
extra_hosts:
- "dev.metabuild.org:127.0.0.1"