-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (48 loc) · 1.11 KB
/
docker-compose.yaml
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
# version: '3.8'
# services:
# db:
# image: postgres:12.2-alpine
# container_name: "todo-postgres12"
# ports:
# - "5432:5432"
# tty: true
# env_file:
# - .env
# environment:
# - POSTGRES_DB=${POSTGRES_DB}
# - POSTGRES_USER=${POSTGRES_USER}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# healthcheck:
# test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}"]
# interval: 10s
# timeout: 5s
# retries: 5
# networks:
# - fullstack
# volumes:
# - database_postgres:/var/lib/postgresql/data
# api:
# build: .
# image: todo-app:1.0
# container_name: "todo-api"
# tty: true
# env_file:
# - .env
# environment:
# DB_USERNAME: ${POSTGRES_USER}
# DB_PASSWORD: ${POSTGRES_PASSWORD}
# DB_DB: ${POSTGRES_DB}
# DB_HOST: ${DB_HOST}
# DB_PORT: ${DB_PORT}
# SSL_MODE: ${SSL_MODE}
# ports:
# - "8080:8080"
# # depends_on:
# # - db
# networks:
# - fullstack
# volumes:
# database_postgres:
# networks:
# fullstack:
# driver: bridge