-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.ipfs-app.yml
86 lines (86 loc) · 2.71 KB
/
docker-compose.ipfs-app.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
version: '3.2'
services:
ipfs:
container_name: $PROJECT_NAME-ipfs
image: ipfs/go-ipfs:latest
user: "${UID}:${GID}"
restart: always
env_file: .env
ports:
- "4001"
- "5001"
networks:
internal-network:
external-network:
aliases:
- $PROJECT_NAME-ipfs
server:
container_name: $PROJECT_NAME-server
build:
context: ./server/
user: "${UID}:${GID}"
restart: always
env_file: .env
depends_on:
- ipfs
volumes:
- ./server/:/app
- /app/node_modules
working_dir: /app
command: "npm run dev"
networks:
internal-network:
external-network:
aliases:
- $PROJECT_NAME-server
ports:
- "8081:$COMMUNITY_APP_PORT"
environment:
- NODE_ENV=${COMMUNITY_APP_ENV}
- PORT=${COMMUNITY_APP_PORT}
# !!! REMEMBER TO SET MONGO LISTEN PORT TO 0.0.0.0 !!!
- COMMUNITY_MONGO_URI=mongodb://172.17.0.1/${MONGO_DBNAME}
- COMMUNITY_MONGO_USER=${MONGO_USER}
- COMMUNITY_MONGO_PASS=${MONGO_PASS}
- COMMUNITY_MONGO_AUTH_SOURCE=${MONGO_AUTH_SOURCE}
- COMMUNITY_IPFS_HOST=${IPFS_HOST}
- COMMUNITY_IPFS_PORT=${IPFS_PORT}
- COMMUNITY_IPFS_PROTOCOL=${IPFS_PROTO}
- COMMUNITY_IPFS_TIMEOUT=${IPFS_READ_TIMEOUT}
- COMMUNITY_API_SECRET=${COMMUNITY_API_SECRET}
- COMMUNITY_MANDRILL_API_KEY=${MANDRILL_API}
- COMMUNITY_MANDRILL_SEND_TO=${MANDRILL_SEND_TO}
- COMMUNITY_MAILCHIMP_API_BASE=${MAILCHIMP_API_BASE}
- COMMUNITY_MAILCHIMP_LIST=${MAILCHIMP_LIST_NAME}
- COMMUNITY_AMAZON_BUCKET_API=${AMAZON_BUCKET_API}
client:
container_name: $PROJECT_NAME-client
build:
context: ./client/
user: "${UID}:${GID}"
restart: always
env_file: .env
depends_on:
- server
volumes:
- ./client/:/app
- /app/node_modules
working_dir: /app
command: "npm start"
networks:
internal-network:
external-network:
aliases:
- $PROJECT_NAME-client
ports:
- "8080:$COMMUNITY_APP_PORT"
environment:
- NODE_ENV=${COMMUNITY_APP_ENV}
- PORT=${COMMUNITY_APP_PORT}
- COMMUNITY_APP_HOST=server
- COMMUNITY_APP_PORT=${COMMUNITY_APP_PORT}
networks:
internal-network:
external-network:
external:
name: $PROJECT_NAME