-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
47 lines (34 loc) · 908 Bytes
/
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
version: '3'
services:
web:
build: .
container_name: web
restart: on-failure
ports:
- 8080:3000
environment:
- PORT=${PORT}
- OOOO=database
- DNS=host=database user=postgres password=password port=5432 dbname=gocart sslmode=disable
- SECRET=${SECRET}
- TWILIO_AUTH_TOKEN =${TWILIO_AUTH_TOKEN}
- VERIFY_SERVICE_SID=${VERIFY_SERVICE_SID}
- AWS_REGION=${AWS_REGION}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- PAYMENT_SEC_KEY=${PAYMENT_SEC_KEY}
database:
image: postgres:latest
# container_name: postgres
restart: always
environment:
POSTGRES_DB: gocart
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
ports:
- 5432:5432
volumes:
- p-data:/var/lib/postgresql/data
volumes:
p-data:
driver: local