-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (102 loc) · 1.99 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
services:
motion:
build: ./MD/
restart: always
container_name: motion
ports:
- *:*
eco:
build: ./ecology/
restart: always
container_name: eco
ports:
- *:*
onyx_db:
image: mongo
restart: always
container_name: onyx_db
ports:
- *:*
networks:
onyx_net:
ipv4_address: "*"
volumes:
- onyx_vol:/data/db
- *
environment:
MONGO_INITDB_ROOT_USERNAME: x
MONGO_INITDB_ROOT_PASSWORD: x
command: mongod --auth --config *
#command: mongod -v *:* --auth --config *
onyx_cache:
container_name: onyx_cache
image: redis:latest
restart: always
entrypoint: redis-server --appendonly yes --requirepass *** --maxmemory 512mb --maxmemory-policy allkeys-lru
networks:
onyx_net:
ipv4_address: *
ports:
- "*:*"
volumes:
- onyx_vol:/data/redis/
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
#depends_on:
# - onyx_db
onyx_api:
build: ./onyx-api/
restart: always
container_name: onyx_api
env_file:
- .env-api
ports:
- *:*
- *:*
networks:
onyx_net:
ipv4_address: *
depends_on:
- onyx_db
onyx_client:
build: ./onyx-client/
restart: always
container_name: onyx_client
env_file:
- .env.local
ports:
- *:*
networks:
onyx_net:
ipv4_address: *
depends_on:
- onyx_api
onyx_dev_client:
build: ./onyx-dev/onyx_client/
restart: always
container_name: onyx_dev_client
env_file:
- ./onyx-dev/.env.local
ports:
- *:*
networks:
onyx_net:
ipv4_address: *
depends_on:
- onyx_api
volumes:
outer_vol:
name: outer_volume
onyx_vol:
name: onyx_volume
networks:
outer_net:
name: outer_network
driver: bridge
onyx_net:
name: onyx_network
driver: bridge
ipam:
config:
- subnet: *
gateway: *