This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
forked from NCCE/curriculum.teachcomputing.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (70 loc) · 1.53 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
version: "3.5"
services:
docker-host:
image: qoomon/docker-host
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
networks:
default:
aliases:
- teachcomputing.rpfdev.com
db:
image: postgres:12.9
volumes:
- pg-data:/var/lib/postgresql/data
ports:
- "5433:5432"
environment:
- POSTGRES_PASSWORD=${DEV_PASS}
restart: unless-stopped
env_file:
- .env
redis:
image: "redis:alpine"
ports:
- "6380:6379"
restart: unless-stopped
env_file:
- .env
sidekiq:
build: .
command: bundle exec sidekiq
depends_on:
- redis
- docker-host
volumes:
- .:/app
- bundle:/usr/local/bundle
environment:
- REDIS_URL=redis://redis:6379/1
- TC_API_URL=http://teachcomputing.rpfdev.com
- TC_API_SECRET=secret
restart: unless-stopped
env_file:
- .env
curriculum:
build: .
command: ./scripts/docker-entrypoint.sh
volumes:
- .:/app
- node_modules:/app/node_modules # ensures we retain node_modules from docker build
- bundle:/usr/local/bundle
ports:
- "1236:1234"
- "1237:1235"
- "3020:3000"
depends_on:
- db
- redis
- sidekiq
- docker-host
environment:
- PROXY_URL=http://host.docker.internal:8888
- RAILS_DEV_DB_PASS=${DEV_PASS}
- REDIS_URL=redis://redis:6379/1
stdin_open: true
tty: true # Allow interactive byebug sessions.
restart: unless-stopped
volumes:
bundle:
pg-data:
node_modules: