blob: d60ed4c31740c371b89a719d676ce95cdfeaf989 (
plain) (
blame)
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
|
version: "3"
services:
web:
container_name: web
build:
context: .
dockerfile: ./apps/web/Dockerfile
restart: always
ports:
- 3000:3000
networks:
- app_network
api:
container_name: api
build:
context: .
dockerfile: ./apps/api/Dockerfile
restart: always
ports:
- 3001:3001
networks:
- app_network
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
app_network:
external: true
|