-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 930 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
version: '3'
services:
nats:
restart: on-failure:3
image: "nats:2"
hostname: nats
command: --port 44222 --server_name "My Server"
expose:
- "44222"
backend-service:
restart: on-failure:3
build:
context: ./backend-service
dockerfile: Dockerfile
command: -nats_url nats://nats:44222
links:
- nats
frontend-service:
restart: on-failure:3
hostname: frontend-service
build:
context: ./frontend-service
dockerfile: Dockerfile
command: -nats_url nats://nats:44222 -port 8090
expose:
- "8090"
links:
- nats
application:
restart: on-failure:3
hostname: application
build:
context: ./application
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
links:
- frontend-service