-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
64 lines (63 loc) · 1.24 KB
/
docker-compose.yaml
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
version: "3.7"
services:
pg:
image: postgres:15.2-bullseye
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker123
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- backend
web:
build:
context: App/
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
target: development
labels:
imaq: 'Modern Rails Development'
# command: ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-P", "/tmp/server.pid"]
command: ["bin/dev"]
volumes:
- gem_cache:/usr/local/bundle
- ./App/:/opt/app
networks:
- frontend
- backend
ports:
- "3000"
env_file: App/.env
depends_on:
- pg
- redis
tty: true
stdin_open: true
redis:
image: redis:7.0.8-bullseye
ports:
- "6379:6379"
volumes:
- redis_data:/var/lib/redis/data
networks:
- backend
nginx:
image: nginx:latest
volumes:
- ./reverse-proxy.conf:/etc/nginx/conf.d/reverse-proxy.conf
ports:
- "8000:8000"
depends_on:
- web
networks:
- frontend
volumes:
pg_data:
redis_data:
gem_cache:
networks:
frontend:
backend: