-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.05 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
version: '3'
networks:
main:
services:
web:
platform: linux/amd64
build: .
image: myipc
hostname: node
ports:
- "80:80"
- "2000:2000"
- "3000:3000"
#volumes:
# - .:/usr/app
environment:
DATABASE_URL: $DATABASE_URL
API_KEY: $API_KEY
# START_COMMAND: "sleep 999999999"
networks:
main:
aliases:
- web
postgres:
hostname: postres
image: postgres:14.4-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
DATABASE_URL: $DATABASE_URL
volumes:
- ./data:/var/lib/postgresql/data
- ./postgresql/cockroach.crt:/root/.postgresql/root.crt
#- ./postgresql/aiven.crt:/root/.postgresql/root.crt
networks:
main:
aliases:
- postgres