forked from adfinis/customer-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
152 lines (139 loc) · 3.58 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '2'
services:
web:
image: nginx
volumes:
- ./tools/docker/nginx/nginx-dev.conf:/etc/nginx/nginx.conf
links:
- backend
# - frontend
ports:
- "8080:80"
backend:
image: node:8
working_dir: /usr/src/app
volumes:
- ./backend:/usr/src/app
- ./tools/docker/rt4/var/rt4:/var/rt4/rt4
links:
- redis
- postgres
- ldap
# - redmine
# - rt
# - vault
- timedbackend
environment:
- NODE_ENV=development
- DEBUG=app:*
ports:
- "3000:3000"
command: yarn watch
# frontend:
# image: node:8
# working_dir: /usr/src/app
# volumes:
# - ./frontend:/usr/src/app
# - /usr/src/app/tmp
# - /usr/src/app/dist
# ports:
# - "7020:7020"
# command: yarn start-proxy
redis:
image: redis
ports:
- "6379:6379"
ldap:
image: osixia/openldap
ports:
- "4389:389"
volumes:
- ./tools/docker/ldap/ldap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom
environment:
- LDAP_ORGANISATION=adsy
- LDAP_DOMAIN=adsy-ext.becs.adfinis-sygroup.ch
- LDAP_ADMIN_PASSWORD=123qwe
- LDAP_OPENLDAP_UID=1000
- LDAP_OPENLDAP_GID=1000
- LDAP_TLS=false
- LDAP_BASE_DN=dc=adsy-ext,dc=becs,dc=adfinis-sygroup,dc=ch
command: ["--copy-service", "--loglevel", "debug"]
ldapadmin:
image: osixia/phpldapadmin
volumes:
- ./tools/docker/ldapadmin/config.php:/container/service/phpldapadmin/assets/config/config.php
ports:
- "6443:80"
environment:
#- PHPLDAPADMIN_LDAP_HOSTS=ldap
- PHPLDAPADMIN_HTTPS=false
- PHPLDAPADMIN_LDAP_CLIENT_TLS=false
command: ['--copy-service']
postgres:
image: postgres
volumes:
- ./tools/docker/postgres/setup/:/docker-entrypoint-initdb.d/
- ./tools/docker/postgres/timed-test-data.sql:/tmp/timed-test-data.sql
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=customercenter
ports:
- "5432:5432"
pgadmin:
image: fenglc/pgadmin4
ports:
- "5050:5050"
environment:
- DEFAULT_USER=admin
- DEFAULT_PASSWORD=admin
# User older version because the newer version does not work
# vault:
# image: vault:0.9.0
# environment:
# - VAULT_DEV_ROOT_TOKEN_ID=myroot
# - VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
# ports:
# - "8200:8200"
timedbackend:
image: adfinissygroup/timed-backend:v0.13.1
ports:
- '8000:80'
depends_on:
- postgres
environment:
- DATABASE_URL=psql://test:test@postgres:5432/timed
- DJANGO_DATABASE_HOST=postgres
- DJANGO_DATABASE_USER=test
- DJANGO_DATABASE_PASSWORD=test
- ENV=docker
- STATIC_ROOT=/var/www/static
command: /bin/sh -c "wait-for-it.sh -t 60 postgres:5432 -- ./manage.py migrate && uwsgi"
# gitlab:
# image: 'gitlab/gitlab-ce:latest'
# logging:
# driver: "none"
# ports:
# - '5080:80'
# - '5443:443'
# - '5022:22'
# gitlab-runner:
# image: 'gitlab/gitlab-runner:latest'
# depends_on:
# - gitlab
# mailcatcher:
# image: schickling/mailcatcher
# ports:
# - '1080:1080'
# rt:
# build: ../rt-rest-api.src
# ports:
# - '8001:80'
# volumes:
# - ../rt-rest-api.src:/app
# environment:
# - DJANGO_DB_USER=${DJANGO_DB_USER}
# - DJANGO_DB_PASSWORD=${DJANGO_DB_PASSWORD}
# - DJANGO_DB_HOST=${DJANGO_DB_HOST}
# - STATIC_ROOT=/var/www/static
# - DJANGO_AUTH_LDAP_SERVER_URI=ldap://ldap:389