forked from SporosDAO/sweat-token
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
88 lines (86 loc) · 2.04 KB
/
docker-compose.yaml
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
version: "3.9"
networks:
sweat-token:
name: sweat-token
driver: bridge
services:
contracts:
command: bash -c "yarn install && yarn start"
container_name: contracts
working_dir: /app/contracts
networks:
- sweat-token
restart: unless-stopped
build:
context: ./
dockerfile: Dockerfile
target: contracts
image: sweat-token/dev
volumes:
- ./contracts:/app/contracts
# backend:
# command: bash -c "yarn install && yarn run start:debug"
# container_name: backend
# working_dir: /app/backend
# networks:
# - sweat-token
# depends_on:
# - mongo
# ports:
# - 3001:3001
# - 9229:9229
# restart: unless-stopped
# build:
# context: ./
# dockerfile: Dockerfile
# target: backend
# image: sweat-token/dev
# environment:
# - DATA_DIR=/data
# - LOG_LEVEL=info
# volumes:
# - ./backend:/app/backend
frontend:
command: bash -c "yarn start"
container_name: frontend
working_dir: /app/frontend
networks:
- sweat-token
# depends_on:
# - backend
# - mongo-express
ports:
- 3000:3000
restart: unless-stopped
build:
context: ./
dockerfile: Dockerfile
target: frontend
image: sweat-token/dev
environment:
- DATA_DIR=/data
- LOG_LEVEL=info
- REACT_APP_SWEAT_TOKEN_API_BASEPATH=$REACT_APP_SWEAT_TOKEN_API_BASEPATH
volumes:
- ./frontend:/app/frontend
# mongo:
# image: mongo
# restart: unless-stopped
# # environment:
# # MONGO_INITDB_ROOT_USERNAME: root
# # MONGO_INITDB_ROOT_PASSWORD: root
# volumes:
# - ./data/mongodb:/data/db
# ports:
# - 27017:27017
# mongo-express:
# image: mongo-express
# restart: unless-stopped
# depends_on:
# - mongo
# ports:
# - 8081:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: root
# ME_CONFIG_MONGODB_URL: mongodb://root:root@mongo:27017/