-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (55 loc) · 1.26 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
version: "3"
services:
cita:
image: cita/cita-run:ubuntu-18.04-20180813
volumes:
- ./cita:/opt/cita-run
- ${LOCALTIME_PATH}:/etc/localtime
container_name: cita_secp256k1_sha3_run
working_dir: /opt/cita-run/cita_secp256k1_sha3
stdin_open: true
command: /opt/cita-run/create_main.sh
env_file: .env
ports:
- "1337:1337"
db:
image: postgres:10.5
volumes:
- ./docker/data:/var/lib/postgresql/data
app:
build:
context: ./re-birth/re-birth
dockerfile: ./docker/app/Dockerfile
volumes:
- ./re-birth/re-birth:/app
command: bundle exec puma -C config/puma.docker.rb
depends_on:
- db
- cita
sync:
build:
context: ./re-birth/re-birth
dockerfile: ./docker/app/Dockerfile
volumes:
- ./re-birth/re-birth:/app
command: bash -c "rails daemons:sync:start && tail -f /app/log/production_sync.log"
depends_on:
- db
re-birth:
build:
context: ./re-birth/re-birth
dockerfile: ./docker/web/Dockerfile
depends_on:
- app
- cita
ports:
- "8888:80"
microscope:
build:
context: ./microscope
dockerfile: ./Dockerfile
tty: true
depends_on:
- re-birth
ports:
- "8080:80"