forked from cryptonomex/faucet
-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml.example
50 lines (47 loc) · 1.11 KB
/
docker-compose.yml.example
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
version: '3.5'
services:
postgres:
build:
context: .
dockerfile: Dockerfile.db
volumes:
- type: bind
source: ./../shared/faucet_postgres_data
target: /var/lib/postgresql/data
env_file:
- .docker_compose.env
faucet:
build:
context: .
dockerfile: Dockerfile.web
entrypoint:
- /docker-entrypoint-web.sh
depends_on:
- postgres
#command: bundle exec rackup --port ${HOST_APP_PORT} --env ${RAILS_ENV}
command: tail -f /dev/null
# command: bundle exec unicorn -E ${RAILS_ENV} --port ${HOST_APP_PORT}
volumes:
- type: bind
source: ./../shared/tmp
target: /app/tmp
- type: bind
source: ./../shared/public
target: /app/public
- type: bind
source: ./../shared/log
target: /app/log
- type: bind
source: ./../shared/bundle
target: /bundle
- .:/app
ports:
- "${HOST_APP_PORT}:${HOST_APP_PORT}"
env_file:
- .docker_compose.env
networks:
- default
- proxynet
networks:
proxynet:
name: ${PROXYNET_NAME}