-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 973 Bytes
/
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
version: '3.2'
services:
db:
image: mariadb
restart: always
volumes:
- ./db/mysql_data:/var/lib/mysql
- type: bind
source: ./my.cnf
target: /etc/mysql/my.cnf
env_file:
- .env
ports:
- "3307:3307"
networks:
- network
redis:
image: 'redis:4.0-alpine'
command: redis-server
volumes:
- './redis:/data'
networks:
- network
web:
depends_on:
- 'db'
- 'redis'
build:
context: .
dockerfile: Dockerfile
args:
USER_ID: $USER_ID
GROUP_ID: $GROUP_ID
command: foreman start -f Procfile.prod -p 13002
env_file:
- .env
volumes:
- ./src:/usr/local/app
- type: tmpfs
target: /usr/local/app/tmp/pids/
- bundler_gems:/usr/local/bundle/
ports:
- "13002:13002"
#- "35729:35729"
links:
- db
networks:
- network
volumes:
bundler_gems:
networks:
network: