forked from virtuozzo/cloudnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (70 loc) · 1.34 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
67
68
69
70
71
72
73
74
75
76
77
78
cloudnet-web:
image: jwilder/nginx-proxy:0.2.0
restart: always
volumes:
- ./certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
links:
- cloudnet-app
ports:
- "80:80"
- "443:443"
cloudnet-cron:
image: onapp/cloudnet
env_file: .env.docker
restart: always
links:
- cloudnet-redis
- cloudnet-db
- cloudnet-memcached
volumes:
- ./log:/app/log
command: foreman run cron
cloudnet-app:
image: onapp/cloudnet
env_file: .env.docker
restart: always
ports:
- "9292"
links:
- cloudnet-redis
- cloudnet-db
- cloudnet-memcached
volumes:
- ./log:/app/log
command: foreman run web
cloudnet-worker:
image: onapp/cloudnet
env_file: .env.docker
restart: always
links:
- cloudnet-redis
- cloudnet-db
- cloudnet-memcached
volumes:
- ./log:/app/log
command: foreman run sidekiq --logfile /app/log/sidekiq.log
cloudnet-redis:
image: redis
restart: always
cloudnet-memcached:
image: memcached
restart: always
cloudnet-dbdata:
image: postgres
volumes:
- /var/lib/postgresql
command: "true"
cloudnet-db:
image: postgres
ports:
- "5432"
volumes_from:
- cloudnet-dbdata
restart: always
cloudnet-dbbackup:
image: hackedunit/docker-postgres-backup
env_file: .env.docker
restart: always
links:
- cloudnet-db