-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
97 lines (90 loc) · 2.46 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
97 lines (90 loc) · 2.46 KB
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
89
90
91
92
93
94
95
96
97
# Local development compose — full stack with devmode node.
# Debug ports exposed for direct access.
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d
# pnpm dev
services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: aepg
POSTGRES_USER: aepg
POSTGRES_PASSWORD: aepg_dev
ports:
- '5433:5432'
volumes:
- pgdata_dev:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U aepg']
interval: 5s
timeout: 5s
retries: 5
aeternity-node:
image: aeternity/aeternity:v7.2.0-bundle
hostname: aeternity-node
environment:
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
AE__SYSTEM__CUSTOM_PREFUNDED_ACCS_FILE: /home/aeternity/node/data/aecore/.genesis/accounts_test.json
volumes:
- ./docker/aeternity.yaml:/home/aeternity/aeternity.yaml
- ./docker/accounts.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json
healthcheck:
test: ['CMD-SHELL', 'curl -sf http://localhost:3013/v3/status || exit 1']
interval: 5s
timeout: 5s
retries: 20
aeternity-compiler:
image: aeternity/aesophia_http:v8.0.0
hostname: aeternity-compiler
healthcheck:
test: ['CMD-SHELL', 'curl -sf http://localhost:3080/api || exit 1']
interval: 5s
timeout: 5s
retries: 10
aeternity-proxy:
image: nginx:alpine
hostname: aeternity-proxy
ports:
- '3004:3004'
volumes:
- ./docker/ae-proxy.conf:/etc/nginx/conf.d/default.conf
depends_on:
aeternity-node:
condition: service_healthy
aeternity-compiler:
condition: service_healthy
server:
build:
context: .
dockerfile: apps/server/Dockerfile
ports:
- '3001:3001'
environment:
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_NAME: aepg
DATABASE_USER: aepg
DATABASE_PASSWORD: aepg_dev
TYPEORM_SYNC: 'true'
COMPILER_URL: https://v8.compiler.aepps.com
NODE_URL: https://testnet.aeternity.io
DEVMODE_NODE_URL: http://aeternity-proxy:3004
DEVMODE_COMPILER_URL: http://aeternity-proxy:3004
PORT: 3001
CORS_ORIGIN: http://localhost:3000
depends_on:
postgres:
condition: service_healthy
client:
build:
context: .
dockerfile: apps/client/Dockerfile
args:
VITE_PLAUSIBLE_DOMAIN: ''
ports:
- '3000:80'
depends_on:
- server
volumes:
pgdata_dev: