-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (70 loc) · 1.46 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
version: '3.8'
services:
db:
container_name: db
image: postgres:14.2-alpine
restart: always
environment:
POSTGRES_USER: api
POSTGRES_PASSWORD: supersecure
POSTGRES_DB: hackathon
ports:
- "5432:5432"
networks:
- app-network
api:
container_name: api
build:
context: ./api-backend
restart: always
volumes:
- ./api-backend:/usr/src/app
depends_on:
- db
# - redis
networks:
- app-network
ntf:
container_name: nft
build:
context: ./nft-backend
# working_dir value has to be the same of mapped volume
working_dir: /nft-backend
ports:
- "4000:4000"
restart: always
environment:
- WEB3_NETWORK=testnet
- WEB3_PRIVATE_KEY=760b064b32cd600fc2ee6044d2aab50b5d1ee838b136b67fc33ab177b0a4a8fd
volumes:
- ./nft-backend/:/nft-backend/
- /var/run/docker.sock:/var/run/docker.sock
networks:
- app-network
frontend:
container_name: frontend
build:
context: ./front-end
volumes:
- ./front-end:/usr/src/app
depends_on:
- db
networks:
- app-network
ports:
- 3000:3000
nginx:
container_name: nginx
image: nginx:1.21.6-alpine
restart: on-failure
volumes:
- ./infra/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
depends_on:
- db
networks:
- app-network
networks:
app-network:
driver: bridge