-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose-dev.yml
59 lines (54 loc) · 1.23 KB
/
docker-compose-dev.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
version: '3.5'
services:
redis:
image: redis:6
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./scripts/redis.conf:/usr/local/etc/redis/redis.conf
db:
image: postgres:10.23-bullseye
# persist the database between containers by storing it in a volume
ports:
- 5432:5432
volumes:
- fablabs-postgres:/var/lib/postgresql/data
#- ./dump:/dump
environment:
- POSTGRES_DB=fablabs_develop
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
app:
env_file: .env
build:
context: .
dockerfile: Dockerfile
volumes:
- ./app:/fablabs/app
- ./config:/fablabs/config
- ./db:/fablabs/db
- ./lib:/fablabs/lib
- ./log:/fablabs/log
- ./public:/fablabs/public
- ./spec:/fablabs/spec
# - .:/fablabs
- app-tmp:/fablabs/tmp
- bundle_path:/usr/local/bundle
# environment:
# - BUNDLE_PATH=/bundle/vendor
depends_on:
- db
- redis
ports:
- "3000:3000"
logging:
driver: "json-file"
options:
max-size: "100m"
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '8025:8025'
- '1025:1025'
volumes:
fablabs-postgres:
app-tmp:
bundle_path: