forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1016 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
x-app: &default-app
build:
context: "."
target: "app"
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
- "RAILS_ENV=${RAILS_ENV:-production}"
- "NODE_ENV=${NODE_ENV:-production}"
depends_on:
- "db"
- "cache"
links:
- "db"
- "cache"
env_file:
- ".env"
tty: true
volumes:
- "${DOCKER_WEB_VOLUME}"
- bundle:/usr/local/bundle
- node:/node_modules
services:
db:
environment:
MYSQL_ROOT_PASSWORD: 'bp_user'
image: "mysql:latest"
profiles: ["db"]
ports:
- "3306:3306"
volumes:
- db-v:/var/lib/mysql
cache:
deploy:
resources:
limits:
cpus: "${DOCKER_REDIS_CPUS:-0}"
memory: "${DOCKER_REDIS_MEMORY:-0}"
image: "memcached:1.6.17-bullseye"
profiles: ["cache"]
web:
<<: *default-app
ports:
- "${DOCKER_WEB_PORT_FORWARD:-127.0.0.1:3000}:${PORT:-3000}"
profiles: ["web"]
command: "yarn build --watch"
volumes:
db-v:
bundle:
node: