-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (111 loc) · 2.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
120 lines (111 loc) · 2.37 KB
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
version: '3.7'
services:
auth:
container_name: billman-auth
command: npm run start:dev
env_file:
- ./auth/.env
environment:
- MONGO_URI=mongodb://billman-auth-mongo/billman-auth
- GOOGLE_OAUTH_REDIRECT_URI=http://localhost:3000/callback
- FACEBOOK_OAUTH_REDIRECT_URI=http://localhost:3000/callback
build:
context: ./auth
user: 'node:node'
volumes:
- './auth:/home/node/app:rw'
depends_on:
- billman-auth-mongo
networks:
- mongo_net
- gateway_net
billman-auth-mongo:
image: mongo:4.4.4-bionic
container_name: billman-auth-mongo
logging:
driver: none
ports:
- 27018:27017
volumes:
- mongodb:/data/db
- mongoconfig:/data/configdb
networks:
- mongo_net
web:
container_name: billman-web
command: npm run start:dev
env_file:
- ./web/.env
environment:
- SNOWPACK_PUBLIC_AUTH_URL=http://localhost:4000/auth
- SNOWPACK_PUBLIC_APP_URL=http://localhost:3100
build:
context: ./web
ports:
- '3000:80'
user: 'node:node'
volumes:
- './web:/home/node/app:rw'
app:
container_name: billman-app
command: npm run start:dev
env_file:
- ./app/.env
build:
context: ./app
ports:
- '3100:80'
user: 'node:node'
volumes:
- './app:/home/node/app:rw'
gateway:
container_name: billman-gateway
env_file:
- ./gateway/.env
build:
context: ./gateway
ports:
- '4000:80'
user: 'node:node'
volumes:
- './gateway:/home/node/app:rw'
networks:
- gateway_net
wallets:
container_name: billman-wallets
env_file:
- ./wallets/.env
environment:
- MYSQL_URI=root:root@tcp(mysql:3306)/billman-wallets?parseTime=True
build:
context: ./wallets
dockerfile: Dockerfile.dev
user: 'go:go'
volumes:
- './wallets:/home/go/app:rw'
depends_on:
- mysql
networks:
- mysql_net
- gateway_net
mysql:
container_name: billman-mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: billman-wallets
volumes:
- mysql:/var/lib/mysql
networks:
- mysql_net
volumes:
mongodb:
mongoconfig:
mysql:
networks:
mongo_net:
driver: bridge
gateway_net:
driver: bridge
mysql_net:
driver: bridge