forked from Terrastories/terrastories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (73 loc) · 1.65 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
version: "3.7"
services:
db:
image: postgres:11
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${DB_USER_PASSWORD}
volumes:
- "postgres_data:/var/lib/postgresql/data"
# webpacker:
# image: ${DOCKER_IMAGE_NAME-terrastories}
# command: ["./scripts/start_webpack_dev.sh"]
# volumes:
# - ./rails:/opt/terrastories:cached
# ports:
# - 3035:3035
x-web-common: &x-web-common
image: ${DOCKER_IMAGE_NAME-terrastories}
build:
context: ./rails
args:
precompileassets: "not"
env_file:
- .env
web:
<<: *x-web-common
command: scripts/server
ports:
- 3000:3000
depends_on:
- db
volumes:
- ./rails:/opt/terrastories:cached
- ./data/media:/media
- ./data/import/media:/opt/terrastories/import/media
web-test:
<<: *x-web-common
environment:
RAILS_ENV: test
command: scripts/test-server
ports:
- 3001:3000
depends_on:
- db
volumes:
- ./rails:/opt/terrastories:cached
selenium:
# Debug version enables VNC ability
image: selenium/standalone-chrome-debug:3.0.1-germanium
# Bind selenium port & VNC port
ports: ['4444:4444', '5900:5900']
logging:
# Disable noisy logs.
driver: none
# bump this number up if pages are crashing
shm_size: '256mb'
e2e:
build:
context: ./e2e
volumes:
- ./e2e:/opt/terrastories_e2e:cached
environment:
TEST_APP_HOST: web-test
TEST_APP_PORT: 3000
SELENIUM_HOST: selenium
SELENIUM_PORT: 4444
depends_on:
- web-test
- selenium
volumes:
postgres_data:
mbtiles: