-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
48 lines (45 loc) · 1.01 KB
/
docker-compose.dev.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
version: "3.9"
services:
user-center-umi-dev:
build:
context: user-center-umi
dockerfile: docker/Dockerfile.dev
image: user-center-umi:dev
container_name: user-center-umi-dev
stdin_open: true
tty: true
environment:
BRANCH: ${BRANCH:-dev}
networks:
- backend
ports:
- 8001:80
volumes:
- ~/.ssh:/root/.ssh
user-center-go-dev:
build:
context: user-center-go
dockerfile: docker/Dockerfile.dev
image: user-center-go:dev
container_name: user-center-go-dev
stdin_open: true
tty: true
environment:
BRANCH: ${BRANCH:-dev}
ADDR: ${ADDR:-:80}
DBINIT: ${DBINIT:-false}
MONGO: ${MONGO:-mongodb://mongo:27017}
REDIS: ${REDIS:?redis url is required}
DB: ${DB:-user-center}
K: ${K:-f3fa39nui89Wi707}
D: ${D:?email pwd is required}
volumes:
- ~/.ssh:/root/.ssh
networks:
- backend
depends_on:
- mongo
networks:
backend:
name: backend
driver: bridge