This repository has been archived by the owner on Aug 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (66 loc) · 1.59 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
version: '2'
services:
db:
image: postgres
container_name: ccbadm-db
# user: "root"
volumes:
- /data/ccbadm-db:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- PGUSER=postgres
- POSTGRES_DB=d4ulqlkckanfe2
ports:
- '5432:5432'
cache:
image: memcached
container_name: ccbadm-cache
api:
image: jesse1983/ccbadm-api:latest
command: rails s -p 3000 -b '0.0.0.0'
# command: puma config.ru -p 3000
container_name: ccbadm-api
volumes:
- ./ccbadm-api:/app/
environment:
RAILS_ENV: development
DATABASE_NAME: d4ulqlkckanfe2
DATABASE_HOST: ccbadm-db
DATABASE_USERNAME: postgres
MEMCACHED_URL: "ccbadm-cache:11211"
ports:
- '3000:3000'
depends_on:
- db
- cache
stdin_open: true
tty: true
restart: always
web:
image: jesse1983/ccbadm-web:latest
command: bash -c "npm i && npm start"
container_name: ccbadm-web
volumes:
- ./ccbadm-web/:/app
environment:
PORT: 5000
ENV: development
ports:
- '5000:5000'
depends_on:
- api
# react:
# image: jesse1983/ccbadm-react:latest
# # command: bash -c "npm i && supervisor -e 'js,jsx' -i 'node_modules' app.js"
# command: bash -c 'yarn --ignore-engines && npm start'
# container_name: ccbadm-react
# user: root
# volumes:
# - ./ccbadm-react/:/app
# - /app/node_modules
# environment:
# PORT: 5999
# ENV: development
# NODE_PATH: /app/node_modules
# ports:
# - '5999:5999'