-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
105 lines (94 loc) · 2.72 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3.4"
x-base-etna-service:
&base-etna-service # Base configuration used by most etna services.
image: etna-base
volumes: &base-etna-service-volumes
- timur-node-modules:/app/node_modules
- .:/app:delegated
- timur-log-dir:/app/log:rw
- timur-tmp-dir:/app/tmp:rw
- timur-public-dir:/app/public:rw
- timur-data-dir:/app/data:rw
- timur-opt-dir:/usr/opt:rw
- ../etna:/etna:delegated
environment: &base-etna-env
'TIMUR_ENV': 'development'
APP_NAME: 'timur'
entrypoint: /entrypoints/development.sh
networks:
default:
edge_net:
extra_hosts:
- 'metis.development.local:172.16.238.10'
- 'magma.development.local:172.16.238.10'
- 'janus.development.local:172.16.238.10'
- 'timur.development.local:172.16.238.10'
- 'rtemis.development.local:172.16.238.10'
- 'archimedes.development.local:172.16.238.10'
- 'polyphemus.development.local:172.16.238.10'
x-base-etna-services:
&base-etna-services # Default list of services an etna app may have.
'timur_app': &base-etna-app # The ruby webserver
<<: *base-etna-service
command: ./bin/puma.sh
depends_on:
- 'timur_db'
'timur_webpack':
&base-etna-webpack # The ruby webpack server watching for changes
<<: *base-etna-service
command: npm run webpack
'timur_db':
&base-etna-db # The application specific database. Overwrite with development-psql-9 to use psql 9 instead.
image: development-psql
volumes:
- timur-db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'timur_development'
POSTGRES_PASSWORD: password
POSTGRES_USER: developer
APP_NAME: 'timur'
container_name: 'timur_db_1'
'timur_app_fe':
&base-etna-fe # The application level apache frontend serving static assets, data, and proxying the main app.
image: etna-apache
entrypoint: /entrypoints/development_app_fe.sh
volumes:
- timur-public-dir:/app/public:ro
- ./data:/app/data:delegated
depends_on:
- 'timur_app'
command: ['httpd', '-DFOREGROUND']
environment:
APP_NAME: 'timur_app_fe'
volumes:
timur-db-data:
driver: local
name: "timur-db-data"
timur-log-dir:
driver: local
name: "timur-log-dir"
timur-tmp-dir:
driver: local
name: "timur-tmp-dir"
timur-public-dir:
driver: local
name: "timur-public-dir"
timur-app-gems:
driver: local
timur-data-dir:
driver: local
name: "timur-data-dir"
timur-opt-dir:
driver: local
timur-node-modules:
driver: local
name: "timur-node-modules"
networks:
edge_net:
ipam:
driver: default
config:
- subnet: '172.16.238.0/24'
- subnet: '2001:3984:3989::/64'
services:
<<: *base-etna-services