-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·104 lines (90 loc) · 2.93 KB
/
docker-compose.yml
File metadata and controls
executable file
·104 lines (90 loc) · 2.93 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.5'
volumes:
postgresql_data:
name: postgresql_data
local_gems:
name: local_gems
node_modules:
name: node_modules
networks:
default:
driver: bridge
# name: hyperstack-addons_network
name: development_network
ipam:
driver: default
config:
- subnet: ${CONTAINER_SUBNET}
services:
redis:
image: "redis:alpine"
container_name: "redis"
restart: always
ports:
- "6379:6379"
postgresql:
image: ${PRIVATE_REGISTRY}/postgres
restart: always
container_name: "postgresql"
ports:
- "127.0.0.1:5432:5432"
#- "0.0.0.0:5432:5432"
expose:
- "5432"
environment:
POSTGRES_PASSWORD: "${GEM_SERVER_KEY}"
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgresql_data:/var/lib/postgresql/data
labels:
- traefik.enable=false
networks:
default:
hyperstack-addons:
image: ${PRIVATE_REGISTRY}/base20:ruby276
#domainname: ${BASE_TEST_DOMAIN}
#hostname: w3
container_name: "hyperstack-addons"
entrypoint: "/bin/bash -c 'redis-server /etc/redis/redis.conf && bundle install ${LOCAL_GEMS} && bundle exec rails assets:precompile && bundle exec rake db:migrate && bundle exec foreman start -f Procfile.dev'"
#entrypoint: "/bin/bash -c 'redis-server /etc/redis/redis.conf && bundle install ${LOCAL_GEMS} && bundle exec rake db:migrate && bundle exec rails s -p 80 -b 0.0.0.0'"
#entrypoint: "/bin/bash -c 'bundle exec rails s -p 80 -b 0.0.0.0'"
#entrypoint: "tail -F /etc/hosts"
expose:
- 80
- 25222
- 3035 # dev_server, webpacker
depends_on:
- postgresql
#- redis
#env_file: "docker.env"
stdin_open: true
tty: true
working_dir: /root/hyperstack-addons
environment:
GEM_SERVER_KEY: "${GEM_SERVER_KEY}"
BUNDLE_PATH: "/root/hyperstack-addons/local_gems"
DRIVER: "travis"
tmpfs:
- /tmp
- /root/hyperstack-addons/tmp
volumes:
# use with docker-compose -V or --renew-anon-volumes Recreate anonymous volumes instead of retrieving data from the previous containers.
- ${MOUNT_PATH:-..}/hyperstack-addons:/root/hyperstack-addons
- ${MOUNT_PATH:-..}/hyperstack:/root/hyperstack
#- ${MOUNT_PATH:-..}/hyper-spec:/root/hyper-spec
# skip some folders from mapping
- /root/hyperstack-addons/tmp/pids/
- /root/hyperstack-addons/tmp/cache/
- /root/hyperstack-addons/tmp/sockets/
- /root/hyperstack-addons/public/assets/
- /root/hyperstack-addons/public/packs/
- /root/hyperstack-addons/public/packs-test/
- /root/hyperstack-addons/.bundle/
# mount volumes
- local_gems:/root/hyperstack-addons/local_gems
# - rails_cache:/root/invoicing/tmp/cache
- node_modules:/root/hyperstack-addons/node_modules
#- packs:/root/invoicing/public/packs
#- packs-test:/root/invoicing/public/packs-test
networks:
default: