-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
78 lines (73 loc) · 1.72 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
version: '3'
services:
web: &web_base
build:
context: .
dockerfile: Dockerfile.dev
image: publishers:latest
environment:
RAILS_ENV: development
REDIS_URL: redis://redis:6379/0
DATABASE_URL: postgres://postgres@postgres:5432/brave_publishers_dev
CREATORS_FULL_HOST: https://localhost
DATABASE_URL_TEST: postgres://postgres@postgres:5432/brave_publishers_test
ADDRESS: "0.0.0.0"
SENDGRID_SMTP_SERVER: mailcatcher
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
command: sh -c "rm -f tmp/pids/server.pid && ./scripts/entrypoint.sh && bundle exec rails s"
networks:
- default
depends_on:
- postgres
- redis
volumes:
- .:/var/www
- /var/www/node_modules
ports:
- "3000:3000"
env_file: .env.docker.dev
next:
build: nextjs/.
command: npm run dev
volumes:
- /app/node_modules # <-- try adding this!
- type: bind
source: ./nextjs
target: /app
- ./ssl:/ssl
ports:
- "443:5001"
- "5001:5001"
- "9231:9231" # debugger ports
- "9232:9232"
- "9229:9229"
- "9230:9230"
environment:
NODE_ENV: development
PUBLISHERS_HOST: web:3000
NEXT_HOST: localhost
depends_on:
- web
networks:
- default
postgres:
image: postgres:15-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- "db-data:/var/lib/postgresql/data:rw"
mailcatcher:
image: "schickling/mailcatcher"
ports:
- 1025:1025
- 1080:1080
redis:
image: redis:alpine
sidekiq:
<<: *web_base
command: bundle exec sidekiq
ports: []
depends_on:
- web
volumes:
db-data: