-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 1.8 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
77
78
79
80
81
82
83
84
85
86
87
version: "3"
services:
cardano-node:
image: inputoutput/cardano-node:1.26.2
networks:
- backend
environment:
NETWORK:
WORKING_DIR: ~/cardano-nft-maker
volumes:
- ${WORKING_DIR}/node-${NETWORK}-db:/data
- ${WORKING_DIR}/node-ipc:/ipc
- node-config:/nix/store
restart: on-failure
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
backend-server:
build:
context: backend-server
dockerfile: Dockerfile.app
ports:
- "8042:8042"
depends_on:
- cardano-node
environment:
NETWORK:
WORKING_DIR: ~/cardano-nft-maker
CARDANO_NODE_SOCKET_PATH: /ipc/node.socket
DOCKER_MODE: 'app'
volumes:
- ${WORKING_DIR}/node-${NETWORK}-db:/data
- ${WORKING_DIR}/node-ipc:/ipc
- node-config:/nix/store
restart: always
networks:
- backend
cardano_frontend_app:
build:
context: frontend-app
dockerfile: Dockerfile
container_name: frontend-app
environment:
API_PORT: 8042
depends_on:
- backend-server
ports:
- "3001:3000"
networks:
- backend
cardano_dev_environment:
build:
context: backend-server
dockerfile: Dockerfile.dev
container_name: cardano_dev_environment
environment:
NETWORK:
WORKING_DIR: ~/cardano-nft-maker
CARDANO_NODE_SOCKET_PATH: /ipc/node.socket
DOCKER_MODE: 'dev'
ports:
- 8043:8043
networks:
- backend
volumes:
- ./backend-server:/usr/src/app
- ${WORKING_DIR}/node-${NETWORK}-db:/data
- ${WORKING_DIR}/node-ipc:/ipc
- node-config:/nix/store
networks:
backend:
driver: bridge
volumes:
node-mainnet-db:
node-testnet-db:
node-ipc:
node-config: