-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
44 lines (42 loc) · 1012 Bytes
/
docker-compose.staging.yml
File metadata and controls
44 lines (42 loc) · 1012 Bytes
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
version: '3.2'
services:
server:
image: ipepe/pnpr:v3-u2004-r2.3.1-n10-staging
restart: always
network_mode: bridge
healthcheck:
disable: true
environment:
POSTGRES_PASSWORD: 'Password1'
RAILS_ENV: 'staging'
FRIENDLY_ERROR_PAGES: 'on'
links:
- postgres_db
ports:
- "3022:22"
- "3080:80"
- "9149:9149"
volumes:
- ./data/webapp:/home/webapp/webapp
- ./data/ssh:/home/webapp/.ssh
- ./data/dbdumps:/dbdumps
expose:
- 80
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.frontend.rule=Host:staging.example.org"
postgres_db:
network_mode: bridge
image: postgres:10
restart: always
environment:
POSTGRES_DB: webapp
POSTGRES_USER: webapp
POSTGRES_PASSWORD: Password1
expose:
- 5432
volumes:
- ./data/db:/var/lib/postgresql/data
- ./data/dbdumps:/dbdumps
# docker-compose -f docker-compose.staging.yml up --build