-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 907 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 907 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
# Copyright CloudZero, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
image: template-cloudzero-open-source:latest
container_name: cloudzero-app
environment:
- ENVIRONMENT=development
ports:
- "8000:8000"
volumes:
# Mount source code for development
- .:/app
# Preserve virtual environment
- venv:/app/.venv
command: python -m your_module
restart: unless-stopped
# Example: Add database service if needed
# db:
# image: postgres:15-alpine
# container_name: cloudzero-db
# environment:
# POSTGRES_DB: mydb
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# ports:
# - "5432:5432"
# volumes:
# - db-data:/var/lib/postgresql/data
volumes:
venv:
# db-data: