-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 979 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 979 Bytes
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
version: "3.9"
services:
frontend:
image: frontend
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- 80:80
# depends_on:
# - backend
restart: on-failure
networks:
- database
# backend:
# image: backend
# build:
# context: .
# dockerfile: backend/Dockerfile
# ports:
# - 8091:8080
# depends_on:
# - database
# restart: on-failure
# networks:
# - database
# database:
# image: postgres:14.1-alpine
# restart: always
# networks:
# - database
# environment:
# POSTGRES_PASSWORD: password
# POSTGRES_USER: postgres
# POSTGRES_DB: docker
# volumes:
# # - ./database-data:/var/lib/postgresql/data
# - ./backend/create.sql:/docker-entrypoint-initdb.d/create_tables.sql
# ports:
# - 5002:5432
volumes:
database-data:
name: data
networks:
database:
name: database
driver: bridge