-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
76 lines (72 loc) · 1.78 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
version: "3.5"
services:
docker-host:
image: qoomon/docker-host
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
restart: unless-stopped
networks:
default:
aliases:
- curriculum.teachcomputing.test
- curriculum.teachcomputing.rpfdev.com
- strapi.teachcomputing.rpfdev.com
- strapi.teachcomputing.test
db:
image: postgres:14
volumes:
- pg-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_HOST_AUTH_METHOD
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
restart: unless-stopped
redis:
image: "redis:alpine"
command: redis-server --requirepass $REDIS_HOST_PASSWORD
ports:
- "6379:6379"
restart: unless-stopped
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"
- "3035:3035"
depends_on:
- db
- redis
- docker-host
environment:
- RAILS_DEV_DB_PASS=password
- WEBPACKER_DEV_SERVER_HOST=web
stdin_open: true
tty: true # Allow interactive byebug sessions
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/healthcheck" ]
interval: 15s
timeout: 15s
retries: 3
start_period: 45s
env_file:
- ${ENV_FILE:-.env.defaults}
volumes:
bundle: null
pg-data: null
node_modules: null
ssh: null
bash_history: null