-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
111 lines (104 loc) · 2.45 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
105
106
107
108
109
110
111
version: "3.2"
networks:
internal:
driver: bridge
internal: true
services:
mailhog:
image: mailhog/mailhog
hostname: mailhog
container_name: ${COMPOSE_PROJECT_NAME}_mailhog
expose:
- 1025
ports:
- ${MAILHOG_PORT:-0}:8025
networks:
- internal
- default
db:
image: ghcr.io/ledgersmb/dev-postgres:${LSMB_DEVDB:-latest}
hostname: db
container_name: ${COMPOSE_PROJECT_NAME}_db
environment:
POSTGRES_PASSWORD: ${PGPASSWORD:-abc}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- dbdata:/var/lib/postgresql/data
ports:
- ${DB_PORT:-0}:5432
networks:
- internal
- default
lsmb:
depends_on:
- db
- selenium
- mailhog
user: "${USER}"
image: ${LSMB_IMAGE:-ghcr.io/ledgersmb/dev-ledgersmb}
hostname: lsmb
container_name: ${COMPOSE_PROJECT_NAME}_lsmb
links:
- "db:postgres"
- selenium
ports:
- ${LSMB_PORT_DEV:-0}:9000
volumes:
- type: bind
target: /srv/ledgersmb
source: ${PWD}
- type: bind
target: $HOME
source: $HOME_DEV
- /etc/group:/etc/group:ro
- /etc/passwd:/etc/passwd:ro
- /etc/shadow:/etc/shadow:ro
environment:
- PERL5OPT
- HARNESS_PERL_SWITCHES
- RELEASE_TESTING=1
- HARNESS_RULESFILE="t/testrules.yml"
- DEVEL_COVER_OPTIONS
- LANG=C.UTF-8
- LSMB_BASE_URL=http://proxy:80
- PSGI_BASE_URL=http://lsmb:5762
- LSMB_TEST_DB=1
- LSMB_NEW_DB=lsmb_test
- COA_TESTING=1
- REMOTE_SERVER_PORT=4444
- REMOTE_SERVER_ADDR=selenium
- BROWSER=${BROWSER:-chrome}
- PGHOST=postgres
- PGUSER=postgres
- PGPASSWORD=${PGPASSWORD:-abc}
- SSMTP_HOSTNAME=mailhog
- SSMTP_MAILHUB=mailhog:1025
- UIUSER=Jest
- UIPASSWORD=Tester
networks:
- internal
- default
- grid
proxy:
image: ghcr.io/ledgersmb/dev-nginx
hostname: ${COMPOSE_PROJECT_NAME}_proxy
container_name: ${COMPOSE_PROJECT_NAME}_proxy
depends_on:
- lsmb
ports:
- ${LSMB_PORT:-0}:80
volumes:
- type: bind
target: /srv/ledgersmb
source: ${PWD}
# Uncomment to override the default configuration
# - ${PWD}/../ldd/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- default
- internal
- grid
volumes:
dbdata:
driver_opts:
type: tmpfs
device: tmpfs