1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- version: '3.4'
- services:
- flask:
- container_name: flask-note
- image: jianboy/flask-note
- restart: always
- networks:
- # - db
- - web
- ports:
- - 5002:5002
- # command: command
- nginx:
- container_name: nginx
- image: nginx:latest
- restart: always
- depends_on:
- - flask
- networks:
- - web
- ports:
- - 80:5085
- volumes:
- - ./nginx:/etc/nginx/conf.d
- # db:
- # container_name: db
- # image: postgres:latest
- # restart: always
- # environment:
- # POSTGRES_USER: postgres
- # POSTGRES_PASSWORD: postgres
- # POSTGRES_DB: postgres
- # networks:
- # - db
- # volumes:
- # - ./postgres-data:/var/lib/postgresql/data
- # db:
- # container_name: mariadb
- # image: mariadb
- # restart: always
- # command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
- # environment:
- # MYSQL_ROOT_PASSWORD: 12345678
- # MYSQL_PASSWORD: 12345678
- # MYSQL_USER: lyq
- # MYSQL_DATABASE: flask
- # LANG: C.UTF-8
- # TZ: Asia/Shanghai
- # MYSQL_CHARSET: utf8mb4
- # MYSQL_COLLATION: utf8mb4_unicode_ci
- # networks:
- # - web
- # volumes:
- # - ./volume/ mysql:/var/lib/mysql
- # - ./volume/sql:/docker-entrypoint-initdb.d
- # - ./volume/mysql/conf.d:/etc/mysql/conf.d
- db:
- container_name: mysql
- image: mysql:latest
- restart: always
- ports:
- - 3306:3306
- environment:
- MYSQL_ROOT_PASSWORD: 12345678
- LANG: C.UTF-8
- TZ: Asia/Shanghai
- MYSQL_CHARSET: utf8mb4
- MYSQL_COLLATION: utf8mb4_unicode_ci
- networks:
- - db
- volumes:
- - ./postgres-data:/var/lib/postgresql/data
- # redis:
- # image: redis
- # container_name: redis
- # ports:
- # - "63799:6379"
- networks:
- # db:
- # driver: bridge
- web:
- driver: bridge
|