This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (76 loc) · 2.31 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
version: '3'
services:
database:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=gestionale
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=12345678
frontend:
build: ./join-frontend
ports:
- "1234:80"
environment:
- VIRTUAL_HOST=join.lascuolaopensource.xyz
- VIRTUAL_PORT=1234
depends_on:
- backend
admin-frontend:
build: ./join-admin-frontend
ports:
- "1235:80"
environment:
- VIRTUAL_HOST=admin.lascuolaopensource.xyz
- VIRTUAL_PORT=1235
depends_on:
- backend
backend:
build:
context: ./join-backend
args:
- APPLICATION_SECRET=${APPLICATION_SECRET}
- JDBC_DATABASE_URL=${JDBC_DATABASE_URL}
- JDBC_DATABASE_USER=${JDBC_DATABASE_USER}
- JDBC_DATABASE_PASSWORD=${JDBC_DATABASE_PASSWORD}
- ADMIN_URL=${ADMIN_URL}
- USER_URL=${USER_URL}
- USER_WELCOME_URL=${USER_WELCOME_URL}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_KEY=${AWS_SECRET_KEY}
- DUMMY_USER_EMAIL=${DUMMY_USER_EMAIL}
- DUMMY_USER_PWD=${DUMMY_USER_PWD}
- BRAINTREE_MERCHANT_ID=${BRAINTREE_MERCHANT_ID}
- BRAINTREE_PUBLIC_KEY=${BRAINTREE_PUBLIC_KEY}
- BRAINTREE_PRIVATE_KEY=${BRAINTREE_PRIVATE_KEY}
- BRAINTREE_ENVIRONMENT=${BRAINTREE_ENVIRONMENT}
- MAILER_HOST=${MAILER_HOST}
- MAILER_USER=${MAILER_USER}
- MAILER_PASS=${MAILER_PASS}
command: bash -c "sbt stage && sbt seedDataProd && target/universal/stage/bin/sos -Dconfig.resource=env/prod.conf -Dhttp.port=9000 -Dlogger.resource=logback.xml -Dplay.evolutions.db.default.autoApply=true -Dplay.http.secret.key='QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241ABR5W:1uDFN];Ik@n'"
ports:
- "9000:9000"
- "9001:9001"
environment:
- VIRTUAL_HOST=login.lascuolaopensource.xyz
- VIRTUAL_PORT=9000
depends_on:
- database
pgadmin:
image: dpage/pgadmin4
ports:
- "8080:80"
volumes:
- pgadmin:/root/.pgadmin
environment:
- PGADMIN_DEFAULT_PASSWORD=12341234
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
pgadmin: