-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.alpha.yml
More file actions
63 lines (57 loc) · 1.16 KB
/
docker-compose.alpha.yml
File metadata and controls
63 lines (57 loc) · 1.16 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
version: "3.7"
services:
postgres:
image: postgres:latest
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "passwd"
POSTGRES_DB: "database"
restart: unless-stopped
volumes:
- nx-postgres:/var/lib/postgresql/data/
networks:
- nx-network
redis:
image: redis:latest
container_name: redis
environment:
REDIS_PASSWORD: "passwd"
restart: unless-stopped
volumes:
- nx-redis:/data
networks:
- nx-network
backend:
image: nx-monorepo/backend:alpha
container_name: backend
ports:
- "3333:3333"
environment:
APP_NAME: NX-powered Applications
restart: unless-stopped
networks:
- nx-network
frontend:
image: nx-monorepo/frontend:alpha
container_name: frontend
ports:
- "3000:3000"
environment:
API_URL: http://backend:3333/api
restart: unless-stopped
networks:
- nx-network
networks:
nx-network:
name: nx-network
driver: bridge
volumes:
nx-node:
name: nx-node
nx-postgres:
name: nx-postgres
nx-redis:
name: nx-redis