-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.skeleton.yml
44 lines (40 loc) · 1.08 KB
/
docker-compose.skeleton.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
version: '3.2'
services:
consul:
image: zeroc0d3lab/centos-consul
ports:
- "8500:8500"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- CONSUL_OPTIONS=${CONSUL_OPTIONS} # minimal server options
ruby:
depends_on:
- consul
image: zeroc0d3lab/centos-ruby
ports:
- "${RUBY_PORT}:22"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${DATA_SAVE}/workspace:/home/docker # volume for data
environment:
- RUBY_VERSION=${RUBY_VERSION}
- RUBY_PACKAGE=${RUBY_PACKAGE}
- PATH_WORKSPACE=${PATH_WORKSPACE}
networks:
- frontend
- backend
#-------------------------------------------------------------------
# NETWORK SETUP
#-------------------------------------------------------------------
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
#-------------------------------------------------------------------
# VOLUME SETUP
#-------------------------------------------------------------------
volumes:
ruby:
driver: "local"