-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (43 loc) · 940 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'
services:
listing:
container_name: listing-service
build: ./services/listings
ports:
- "6000:6000"
networks:
- app-network
user:
container_name: user-service
build: ./services/users
ports:
- "8000:8000"
networks:
- app-network
public-api:
container_name: public-api-service
build: ./services/public-api
ports:
- "7000:7000"
environment:
- LISTINGS_URL=http://listing:6000/listings
- USERS_URL=http://user:8000/users
- MEMCACHED_URL=memcached
depends_on:
listing:
condition: service_started
user:
condition: service_started
memcached:
condition: service_started
networks:
- app-network
memcached:
container_name: memcached
image: memcached:latest
networks:
- app-network
command: ["memcached"]
networks:
app-network:
driver: bridge