3 Star 3 Fork 4

jeffery/odoo-devcontainer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
jeffery 提交于 2023-06-25 12:38 . refactor it
version: '3.3'
services:
# Web Application Service Definition
# --------
#
# All of the information needed to start up an odoo web
# application container.
web:
image: odoo:16.1
build: ./docker
depends_on:
- db
restart: "no"
# Port Mapping
# --------
#
# Here we are mapping a port on the host machine (on the left)
# to a port inside of the container (on the right.) The default
# port on Odoo is 8069, so Odoo is running on that port inside
# of the container. But we are going to access it locally on
# our machine from localhost:9000.
# ports:
# - 8069:8069
# Data Volumes
# --------
#
# This defines files that we are mapping from the host machine
# into the container.
#
# Right now, we are using it to map a configuration file into
# the container and any extra odoo modules.
volumes:
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
# Odoo Environment Variables
# --------
#
# The odoo image uses a few different environment
# variables when running to connect to the postgres
# database.
#
# Make sure that they are the same as the database user
# defined in the db container environment variables.
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
# Database Container Service Definition
# --------
#
# All of the information needed to start up a postgresql
# container.
db:
image: postgres:11
restart: "no"
# Database Environment Variables
# --------
#
# The postgresql image uses a few different environment
# variables when running to create the database. Set the
# username and password of the database user here.
#
# Make sure that they are the same as the database user
# defined in the web container environment variables.
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres # Leave this set to postgres
nginx:
image: nginx
restart: "no"
volumes:
- ./nginx:/etc/nginx/conf.d
ports:
- 8000:80
environment:
- NGINX_PORT=80
depends_on:
- web
- pgadmin
pgadmin:
image: dpage/pgadmin4
restart: "no"
depends_on:
- db
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@g.cn}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- pgadmin:/root/.pgadmin
# ports:
# - "${PGADMIN_PORT:-5050}:80"
volumes:
pgadmin:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jeffery9/odoo-devcontainer.git
git@gitee.com:jeffery9/odoo-devcontainer.git
jeffery9
odoo-devcontainer
odoo-devcontainer
master

搜索帮助