FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorials/docker/docker-compose.yml at master · EasySpringBoot/tutorials · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
EasySpringBoot
/
tutorials
Public
forked from
eugenp/tutorials
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorials
/
docker
/
docker-compose.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (48 loc) · 1.63 KB
Breadcrumbs
tutorials
/
docker
/
docker-compose.yml
Copy path
File metadata and controls
61 lines (48 loc) · 1.63 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version
:
'
3
'
services
:
#
# VOLUME CONTAINER-TO-CONTAINER AND HOST-TO-CONTAINER TEST ##
volumes-example-service
:
image
:
alpine:latest
container_name
:
volumes-example-service
volumes
:
-
/tmp:/my-volumes/host-volume
-
/home:/my-volumes/readonly-host-volume:ro
-
my-named-global-volume:/my-volumes/named-global-volume
tty
:
true
#
Needed to keep the container running
another-volumes-example-service
:
image
:
alpine:latest
container_name
:
another-volumes-example-service
volumes
:
-
my-named-global-volume:/another-path/the-same-named-global-volume
tty
:
true
#
Needed to keep the container running
#
# NETWORK CONTAINER-TO-CONTAINER TEST ##
network-example-service
:
image
:
karthequian/helloworld:latest
container_name
:
network-example-service
networks
:
-
my-shared-network
another-service-in-the-same-network
:
image
:
alpine:latest
container_name
:
another-service-in-the-same-network
networks
:
-
my-shared-network
tty
:
true
#
Needed to keep the container running
another-service-in-its-own-network
:
image
:
alpine:latest
container_name
:
another-service-in-its-own-network
networks
:
-
my-private-network
tty
:
true
#
Needed to keep the container running
#
# NETWORK HOST-TO-CONTAINER TEST ##
network-example-service-available-to-host-on-port-1337
:
image
:
karthequian/helloworld:latest
container_name
:
network-example-service-available-to-host-on-port-1337
networks
:
-
my-shared-network
ports
:
-
"
1337:80
"
volumes
:
my-named-global-volume
:
networks
:
my-shared-network
:
{}
my-private-network
:
{}
Back
|
FazBrowse Home
|
New Git URL