]> git.openstreetmap.org Git - rails.git/blob - .devcontainer/compose.yaml
Merge remote-tracking branch 'upstream/pull/6913'
[rails.git] / .devcontainer / compose.yaml
1 name: "open_street_map"
2
3 services:
4   rails-app:
5     build:
6       context: ..
7       dockerfile: .devcontainer/Dockerfile
8
9     volumes:
10     - ../..:/workspaces:cached
11
12     # Overrides default command so things don't shut down after the process ends.
13     command: sleep infinity
14
15     # Uncomment the next line to use a non-root user for all processes.
16     # user: vscode
17
18     # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
19     # (Adding the "ports" property to this file will not forward from a Codespace.)
20     depends_on:
21     - selenium-default
22     - selenium-de
23     - selenium-nolang
24     - postgres
25
26   selenium-default:
27     image: selenium/standalone-firefox
28     restart: unless-stopped
29
30   selenium-de:
31     image: selenium/standalone-firefox
32     restart: unless-stopped
33
34   selenium-nolang:
35     image: selenium/standalone-firefox
36     restart: unless-stopped
37
38   postgres:
39     image: postgres:15
40     restart: unless-stopped
41     networks:
42     - default
43     volumes:
44     - postgres-data:/var/lib/postgresql/data
45     environment:
46       POSTGRES_DB: openstreetmap
47       POSTGRES_USER: openstreetmap
48       POSTGRES_PASSWORD: openstreetmap
49
50 volumes:
51   postgres-data: