This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
forked from NCCE/teachcomputing.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (87 loc) · 1.99 KB
/
docker-compose.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
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
version: "3.5"
services:
docker-host:
image: qoomon/docker-host
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
networks:
default:
aliases:
- curriculum.teachcomputing.rpfdev.com
db:
image: postgres:13
volumes:
- pg-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
restart: unless-stopped
redis:
image: "redis:alpine"
ports:
- "6379:6379"
restart: unless-stopped
sidekiq:
build: .
command: bundle exec sidekiq
volumes:
- .:/app
- bundle:/usr/local/bundle
depends_on:
- redis
- web
env_file:
- ${ENV_FILE:-.env.defaults}
web:
build: .
command: ./scripts/docker-entrypoint.sh
init: true
volumes:
- .:/app
- node_modules:/app/node_modules # ensures we retain node_modules from docker build
- bundle:/usr/local/bundle
- /var/run/docker.sock:/var/run/docker.sock
- ssh:/root/.ssh
- bash_history:/root/.bash_history
ports:
- "1234:1234"
- "1235:1235"
- "3000:3000"
depends_on:
- db
- redis
- docker-host
- webpack
environment:
- PROXY_URL=http://host.docker.internal:8888
- RAILS_DEV_DB_PASS=password
- WEBPACKER_DEV_SERVER_HOST=webpack
- DOCKER_LOGS=true
stdin_open: true
tty: true # Allow interactive byebug sessions
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000" ]
interval: 10s
timeout: 15s
retries: 3
start_period: 45s
env_file:
- ${ENV_FILE:-.env.defaults}
webpack:
build: .
command: ./scripts/webpack-docker-entrypoint.sh
volumes:
- .:/app
- node_modules:/app/node_modules
- bundle:/usr/local/bundle
ports:
- "3035:3035"
environment:
- WEBPACKER_DEV_SERVER_HOST=webpack
volumes:
bundle: null
pg-data: null
node_modules: null
ssh: null
bash_history: null