-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
92 lines (84 loc) · 2.22 KB
/
docker-compose-local.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
# This file contains the DIFFERENCES from docker-compose.yml
# This file is for LOCAL TESTING with:
# docker-compose -f docker-compose.yml -f docker-compose-local.yml up
version: "3.7"
services:
public_api:
build: ./public_api
image: public_api:latest
container_name: public_api
ports:
- "5000:80"
volumes:
- ${PWD}/public_api/app:/app
networks:
- traefik-public
- auth
- services
command: /start-reload.sh # DEBUG ONLY, CHANGES WILL UPDATE ON-THE-FLY
auth:
build: ./auth
image: auth:latest
container_name: auth
ports:
- "5005:80"
volumes:
- ${PWD}/auth/app:/app
networks:
- traefik-public
- auth
command: /start-reload.sh # DEBUG ONLY, CHANGES WILL UPDATE ON-THE-FLY
restart: unless-stopped # influxdb can be slow to come up + requires time to create the admin user (requires restart)
redis:
image: redislabs/rejson
container_name: redis
ports:
- "6379:6379"
volumes:
- ${PWD}/auth/redis/redis.config:/redis/redis.config # TESTING ONLY, DISABLES DATA LOADING
working_dir: /redis/data
command: ["redis-server", "/redis/redis.config"]
networks:
- auth
influxdb:
image: influxdb:alpine
container_name: influxdb
ports:
- "8086:8086"
volumes:
- ${PWD}/auth/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
#- ${PWD}/auth/influxdb:/var/lib/influxdb # TESTING ONLY, DISABLES DATA LOADING
environment:
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=jefSfPub487y2Kj3r874rbn87b3ewWGU
networks:
- auth
couchdb:
image: couchdb:latest
container_name: couchdb
ports:
- "5984:5984"
volumes:
- ${PWD}/couchdb/data:/opt/couchdb/data
networks:
- traefik-public
- services
- pyspider
environment:
- COUCHDB_USER=user
- COUCHDB_PASSWORD=password
#webservice:
# networks:
# - auth-test
# - services-test # backend needs connection to couchDB for watchlist updates for example
networks:
traefik-public:
name: traefik-public
external: true
registry:
name: registry
external: true
auth:
name: auth
services:
name: services