-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 800 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 800 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
version: '3'
services:
foo:
build:
context: .
args:
- LOCAL_PORT=$FOO_PORT
- REMOTE_PORT=$BAR_PORT
- REMOTE_NAME=bar
- WAIT=$WAIT
container_name: foo
restart: always
ports:
- "$FOO_PORT:$FOO_PORT"
environment:
- LOCAL_PORT=$FOO_PORT
- REMOTE_PORT=$BAR_PORT
- REMOTE_NAME=bar
- WAIT=$WAIT
tty: true
bar:
build:
context: .
args:
- LOCAL_PORT=$BAR_PORT
- REMOTE_PORT=$FOO_PORT
- REMOTE_NAME=foo
- WAIT=$WAIT
container_name: bar
restart: always
ports:
- "$BAR_PORT:$BAR_PORT"
environment:
- LOCAL_PORT=$BAR_PORT
- REMOTE_PORT=$FOO_PORT
- REMOTE_NAME=foo
- WAIT=$WAIT
tty: true
depends_on:
- foo